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
@@ -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