Skip to content

Commit

Permalink
CG: rapidftr#90 - missed a duplicate save_order test after the rebase…
Browse files Browse the repository at this point in the history
…, which put multiple form_sections with the same unique_id in the database
  • Loading branch information
cgeorge committed Nov 16, 2010
1 parent c6a5803 commit 0b9c735
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions spec/controllers/form_section_controller_spec.rb
Expand Up @@ -102,16 +102,4 @@ def valid?
post :enable, :value => true, :sections => {"form_1" => 1, "form_2" => 1}, :controller => "form_section"
end
end

describe "post save_order" do
it "should save the order of the forms" do
form_one = FormSection.create_new_custom("first form")
form_two = FormSection.create_new_custom("second form")
form_three = FormSection.create_new_custom("third form")
post :save_order, :form_order => {form_one.unique_id.to_s => "3", form_two.unique_id.to_s => "1", form_three.unique_id.to_s => "2"}
FormSection.get(form_one.id).order.should == 3
FormSection.get(form_three.id).order.should == 2
FormSection.get(form_two.id).order.should == 1
end
end
end

0 comments on commit 0b9c735

Please sign in to comment.