diff --git a/spec/selenium/helpers/rubrics_specs.rb b/spec/selenium/helpers/rubrics_specs.rb index 697e1c359fc..a34ddb35966 100644 --- a/spec/selenium/helpers/rubrics_specs.rb +++ b/spec/selenium/helpers/rubrics_specs.rb @@ -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'