remove denormalization of lists and orders towards the section

This commit is contained in:
2015-10-12 15:25:58 +02:00
parent a6c74f1872
commit 86e518890f
5 changed files with 22 additions and 27 deletions
-8
View File
@@ -56,14 +56,6 @@ describe List do
it "changes the table" do
expect{ list.move_to_table! new_table }.to change{ list.table_id }.to( new_table.id )
end
it "changes the section" do
expect{ list.move_to_table! new_table }.to change{ list.section_id }.to( new_section.id )
end
it "changes the section of the orders" do
expect{ list.move_to_table! new_table }.to change{ @order1.reload; @order1.section_id }.to( new_section.id )
end
end
describe '#has_active_orders?' do