Merge pull request #1969 from coopdevs/feature/do-not-upcase-state-abbr

Do not upcase State abbreviation
This commit is contained in:
Pau Pérez Fabregat
2018-06-08 08:36:55 +02:00
committed by GitHub
2 changed files with 1 additions and 5 deletions

View File

@@ -1,7 +1,3 @@
class Api::StateSerializer < ActiveModel::Serializer
attributes :id, :name, :abbr
def abbr
object.abbr.upcase
end
end

View File

@@ -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?' })