stability improvement
This commit is contained in:
@@ -61,15 +61,15 @@ describe List do
|
||||
end
|
||||
|
||||
it "changes the table" do
|
||||
expect{ list.move_to_table! new_table }.to change{ list.table_id }.to( new_table.id )
|
||||
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 )
|
||||
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 )
|
||||
expect{ list.move_to_table! new_table }.to change{ @order1.reload; @order1.section_id }.to( new_section.id )
|
||||
end
|
||||
end
|
||||
|
||||
@@ -142,6 +142,7 @@ describe List do
|
||||
|
||||
describe 'broadcasting' do
|
||||
it 'broadcasts to the user and the supplier the active order counter' do
|
||||
# create existing order
|
||||
list.place_order(products: {product.id => 7}, user: user)
|
||||
|
||||
expect{
|
||||
|
||||
Reference in New Issue
Block a user