From ea91a82f30794362da75d3bd08b733079b4e6c60 Mon Sep 17 00:00:00 2001 From: Julius Pabrinkis Date: Thu, 27 Apr 2017 12:20:53 +0100 Subject: [PATCH] Try to fix shopping cart failing feauture in Travis --- spec/features/consumer/shopping/cart_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/features/consumer/shopping/cart_spec.rb b/spec/features/consumer/shopping/cart_spec.rb index 5a894db525..2eb0f4b1ad 100644 --- a/spec/features/consumer/shopping/cart_spec.rb +++ b/spec/features/consumer/shopping/cart_spec.rb @@ -95,8 +95,8 @@ feature "full-page cart", js: true do click_button 'Update' - page.should have_field "order[line_items_attributes][0][quantity]", with: '1' - page.should have_content "Insufficient stock available, only 2 remaining" + expect(page).to have_content "Insufficient stock available, only 2 remaining" + expect(page).to have_field "order[line_items_attributes][0][quantity]", with: '1' end end