eac_rails_base0 0.38.0 → 0.38.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: deda16453b358aef277c27ad13d099b7a10c7940c8c842f351a0ef50175ebba2
4
- data.tar.gz: cf51ff5fb091a53f0a111ae5e670996ffeab9de3f3aac7c9497eb408d83becc2
3
+ metadata.gz: 9a640112c919c9a6822fe216b409ccca154016ea899670b9650a9a5ba7df5154
4
+ data.tar.gz: 51fab398c2c39c8f647ec08eec774840eb8fbee3654aef9d2e3caa314f2d3008
5
5
  SHA512:
6
- metadata.gz: 052c5fc7eddc528fa566a24800ae2e0a0b8de374740ad51bf8c85952b78255b5d526ecaa4af75af60dd64e193a0cd62716461498a71fba3fc87402ff9b8ec69e
7
- data.tar.gz: 997e7368ca4af670ba2fd1fddd077b9fbb09bd0163615714e1ff7c4fbe72917e2b3e54ff0817e837c0c08581e74955a01ccfc471ac3e67207a9f405811425ce0
6
+ metadata.gz: e294db00be3e9c80991d6ac1615b3505dfdc0746b3d23bba19eef9d08f6af06d2bb99b01f4c20744c946644f2dc327bb5a38d7ae9201cac2e09d8d9b620141bb
7
+ data.tar.gz: 40415fdbf162a74aec5493e1afa7a1dc1d0a2bb1905b8b981dae16bd7c58b5e00e19d6a6029daea8a83ae10a5dcffaa29c636b34d02a037c9aedf4cdb6015c28
@@ -23,9 +23,11 @@ RSpec.shared_context 'when user is admin', shared_context: :metadata do
23
23
 
24
24
  before do
25
25
  visit '/users/sign_in'
26
- fill_in 'E-mail', with: user.email
27
- fill_in 'Password', with: user.password
28
- click_on 'Log in'
26
+ fill_in ::I18n.translate!('activerecord.attributes.eac_users_support/user.email'),
27
+ with: user.email
28
+ fill_in ::I18n.translate!('activerecord.attributes.eac_users_support/user.password'),
29
+ with: user.password
30
+ click_button ::I18n.translate!('devise.log_in')
29
31
  end
30
32
 
31
33
  it 'user should be logged' do
@@ -37,9 +39,9 @@ end
37
39
  RSpec.shared_context 'when user is anonymous', shared_context: :metadata do
38
40
  before do
39
41
  visit '/'
40
- if link_exist?('Sair')
41
- click_link('Sair')
42
- elsif !link_exist?('Entrar')
42
+ if link_exist?(::I18n.translate!('devise.log_out'))
43
+ click_link(::I18n.translate!('devise.log_out'))
44
+ elsif !link_exist?(::I18n.translate!('devise.log_in'))
43
45
  raise 'login nor logout link found'
44
46
  end
45
47
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRailsBase0
4
- VERSION = '0.38.0'
4
+ VERSION = '0.38.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eac_rails_base0
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.38.0
4
+ version: 0.38.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esquilo Azul Company
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-07-08 00:00:00.000000000 Z
11
+ date: 2020-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aranha
@@ -621,8 +621,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
621
621
  - !ruby/object:Gem::Version
622
622
  version: '0'
623
623
  requirements: []
624
- rubyforge_project:
625
- rubygems_version: 2.7.7
624
+ rubygems_version: 3.0.6
626
625
  signing_key:
627
626
  specification_version: 4
628
627
  summary: A Rails base for multiple Rails projects developed by Esquilo Azul Company.