mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-27 06:05:19 +00:00
fix rubocop
This commit is contained in:
@@ -7,7 +7,7 @@ module Spree
|
||||
self.belongs_to_required_by_default = false
|
||||
|
||||
searchable_attributes :firstname, :lastname, :phone, :full_name, :full_name_with_comma,
|
||||
:full_name_reversed
|
||||
:full_name_reversed
|
||||
searchable_associations :country, :state
|
||||
|
||||
belongs_to :country, class_name: "Spree::Country"
|
||||
|
||||
@@ -242,24 +242,24 @@ describe '
|
||||
end
|
||||
|
||||
it "by customer fullname with comma" do
|
||||
fill_in "quick_filter", with: o1.bill_address.firstname + ', ' + o1.bill_address.lastname
|
||||
fill_in "quick_filter", with: "#{o1.bill_address.firstname}, #{o1.bill_address.lastname}"
|
||||
page.find('.filter-actions .button.icon-search').click
|
||||
|
||||
expect_line_items_results [li1], [li2, li3]
|
||||
|
||||
fill_in "quick_filter", with: o2.bill_address.firstname + ', ' + o2.bill_address.lastname
|
||||
fill_in "quick_filter", with: "#{o2.bill_address.firstname}, #{o2.bill_address.lastname}"
|
||||
page.find('.filter-actions .button.icon-search').click
|
||||
|
||||
expect_line_items_results [li2, li3], [li1]
|
||||
end
|
||||
|
||||
it "by customer fullname reversed" do
|
||||
fill_in "quick_filter", with: o1.bill_address.lastname + ' ' + o1.bill_address.firstname
|
||||
fill_in "quick_filter", with: "#{o1.bill_address.lastname} #{o1.bill_address.firstname}"
|
||||
page.find('.filter-actions .button.icon-search').click
|
||||
|
||||
expect_line_items_results [li1], [li2, li3]
|
||||
|
||||
fill_in "quick_filter", with: o2.bill_address.lastname + ' ' + o2.bill_address.firstname
|
||||
fill_in "quick_filter", with: "#{o2.bill_address.lastname} #{o2.bill_address.firstname}"
|
||||
page.find('.filter-actions .button.icon-search').click
|
||||
|
||||
expect_line_items_results [li2, li3], [li1]
|
||||
|
||||
Reference in New Issue
Block a user