mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Merge pull request #1969 from coopdevs/feature/do-not-upcase-state-abbr
Do not upcase State abbreviation
This commit is contained in:
@@ -1,7 +1,3 @@
|
||||
class Api::StateSerializer < ActiveModel::Serializer
|
||||
attributes :id, :name, :abbr
|
||||
|
||||
def abbr
|
||||
object.abbr.upcase
|
||||
end
|
||||
end
|
||||
|
||||
@@ -49,7 +49,7 @@ feature "Registration", js: true do
|
||||
fill_in 'enterprise_city', with: 'Northcote'
|
||||
fill_in 'enterprise_zipcode', with: '3070'
|
||||
expect(page).to have_select('enterprise_country', options: %w(Albania Australia), selected: 'Australia')
|
||||
select 'VIC', from: 'enterprise_state'
|
||||
select 'Vic', from: 'enterprise_state'
|
||||
perform_and_ensure(:click_button, "Continue", lambda { page.has_content? 'Who is responsible for managing My Awesome Enterprise?' })
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user