Add failing user spec when loading previous lists

This commit is contained in:
2014-09-05 10:50:10 +02:00
parent 7907719466
commit dbe19779ca
2 changed files with 7 additions and 0 deletions
@@ -45,6 +45,7 @@ Feature: Ordering a product as a user
Scenario: Loading lists and switching to the order products view works, lists loading may unlink active list orders
Given There is an open supplier with a menu
And there is a signed in user with an active order
And the user has an older list for the same supplier
And I wait 1 second
And the user is on the order products page
When the user opens the side menu
@@ -105,3 +105,9 @@ step 'the user should see the products listed for the active list' do
page.should have_content @heineken_beer.name
page.should have_content @apple_pie.name
end
step "the user has an older list for the same supplier" do
expect([@supplier, @table, @user]).to be_all
@older_list = create :list, supplier: @supplier, table: @table, user_ids: [@user.id]
end