Skip to content

Commit

Permalink
i18n - Considerações
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackson Pires authored and Jackson Pires committed Feb 15, 2018
1 parent 71c70b9 commit 351dddf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tdd_app/spec/features/customers_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
visit(new_customer_path)
customer_name = Faker::Name.name

fill_in('customer_name', with: customer_name)
fill_in('customer_email', with: Faker::Internet.email)
fill_in('customer_phone', with: Faker::PhoneNumber.phone_number)
attach_file('customer_avatar', "#{Rails.root}/spec/fixtures/avatar.png")
fill_in('Nome', with: customer_name)
fill_in('Email', with: Faker::Internet.email)
fill_in('Telefone', with: Faker::PhoneNumber.phone_number)
attach_file('Foto do Perfil', "#{Rails.root}/spec/fixtures/avatar.png")
choose(option: ['S','N'].sample)
click_on('Criar Cliente')

Expand Down
3 changes: 3 additions & 0 deletions tdd_app/spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
# If you are not using ActiveRecord, you can remove this line.
ActiveRecord::Migration.maintain_test_schema!

# i18n
I18n.locale = :'pt-BR'

RSpec.configure do |config|
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
config.fixture_path = "#{::Rails.root}/spec/fixtures"
Expand Down

0 comments on commit 351dddf

Please sign in to comment.