diff --git a/spec/features/admin/adjustments_spec.rb b/spec/features/admin/adjustments_spec.rb index 2d93981487..fcd0a0bb39 100644 --- a/spec/features/admin/adjustments_spec.rb +++ b/spec/features/admin/adjustments_spec.rb @@ -34,9 +34,9 @@ feature ' click_button 'Continue' # Then I should see the adjustment, with the correct tax - page.should have_selector 'td.label', text: 'Late fee' - page.should have_selector 'td.amount', text: '110' - page.should have_selector 'td.included-tax', text: '10' + expect(page).to have_selector 'td.label', text: 'Late fee' + expect(page).to have_selector 'td.amount', text: '110' + expect(page).to have_selector 'td.included-tax', text: '10' end scenario "modifying taxed adjustments on an order" do @@ -59,8 +59,8 @@ feature ' click_button 'Continue' # Then the adjustment tax should be cleared - page.should have_selector 'td.amount', text: '110' - page.should have_selector 'td.included-tax', text: '0' + expect(page).to have_selector 'td.amount', text: '110' + expect(page).to have_selector 'td.included-tax', text: '0' end scenario "modifying an untaxed adjustment on an order" do @@ -83,7 +83,7 @@ feature ' click_button 'Continue' # Then the adjustment tax should be recalculated - page.should have_selector 'td.amount', text: '110' - page.should have_selector 'td.included-tax', text: '10' + expect(page).to have_selector 'td.amount', text: '110' + expect(page).to have_selector 'td.included-tax', text: '10' end end