spec: rubrics intermittent thread ending

Change-Id: I57733a3b945785510d9a1ac7a12a84ecff8c301e
Reviewed-on: https://gerrit.instructure.com/13939
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jake Sorce <jake@instructure.com>
This commit is contained in:
Shawn Meredith 2012-09-25 15:06:10 -06:00
parent eff3333ff1
commit d8244fd65b
1 changed files with 9 additions and 9 deletions

View File

@ -35,6 +35,15 @@ shared_examples_for "rubric tests" do
JS
end
it "should delete a rubric" do
create_rubric_with_criterion_points "5"
f('.delete_rubric_link').click
driver.switch_to.alert.accept
wait_for_ajaximations
Rubric.last.workflow_state.should == 'deleted'
ff('#rubrics .rubric').each { |rubric| rubric.should_not be_displayed }
end
it "should edit a rubric" do
edit_title = 'edited rubric'
create_rubric_with_criterion_points "5"
@ -48,15 +57,6 @@ shared_examples_for "rubric tests" do
f('.rubric_title .title').text.should == edit_title
end
it "should delete a rubric" do
create_rubric_with_criterion_points "5"
f('.delete_rubric_link').click
driver.switch_to.alert.accept
wait_for_ajaximations
Rubric.last.workflow_state.should == 'deleted'
ff('#rubrics .rubric').each { |rubric| rubric.should_not be_displayed }
end
it "should allow fractional points" do
create_rubric_with_criterion_points "5.5"
fj(".rubric .criterion:visible .display_criterion_points").text.should == '5.5'