Remove unnecessary condition from spec

This commit is contained in:
Maikel Linke
2019-04-04 16:51:18 +11:00
parent 72458da465
commit 7b116c0982

View File

@@ -255,7 +255,6 @@ feature %q{
scenario "shows the order non-tax adjustments" do
within('table.index tbody') do
@order.adjustments.eligible.each do |adjustment|
next if (adjustment.originator_type == 'Spree::TaxRate') && (adjustment.amount == 0)
expect(page).to have_selector "td", match: :first, text: adjustment.label
expect(page).to have_selector "td.total", text: adjustment.display_amount
end