rails_apps_testing 0.3.8 → 0.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e2207e5c0aa495c531a5c0f700ee0b8a8edbf453
4
- data.tar.gz: 53deb8293f89611ec36e04c91a9536124c0446ea
3
+ metadata.gz: 724bef806ddfeea54fe29f56ad6b2ec8dea2c09e
4
+ data.tar.gz: 55657cd9c81e794e7012c729b3ed557e20fa3a2d
5
5
  SHA512:
6
- metadata.gz: ea14f08bd9df57f1d6035f5b8076e6436446c73c62f79ef3e320bffea722795c6ab703253241a8958b70f4c2f57a10df50e2d4d79dabbc60c08fdefeec8d947b
7
- data.tar.gz: 78cb902bb834191b9ede048ceb79e5c8c5a121c260ae4e86069b23d17260fa145f3b3400dd9cc7e1f01ce786f12fa4136073a100ce003fb607269dd71e34d2a9
6
+ metadata.gz: 514b1fc83ef57f293cde0894723d7664970d62841ba12b0cd085afa89c06b1fea4b40ced8fff360c18df3585ba00c9c1f0cc5e4214297049cbd3935778a9396a
7
+ data.tar.gz: e8b4202badfb9ed842da72ede0252d527fed2e295a7d931b4178e6752b09dfa32343bbd27d14d05a07ef42d175b3f0319c78bbbaadde1cc097d89e53d5d5fc78
data/CHANGELOG.textile CHANGED
@@ -1,5 +1,9 @@
1
1
  h1. CHANGELOG
2
2
 
3
+ h3. 0.3.9 August 20, 2014
4
+
5
+ * match against error messages in the Devise locale file
6
+
3
7
  h3. 0.3.8 August 14, 2014
4
8
 
5
9
  * remove superfluous line from OmniAuth test
@@ -10,7 +10,7 @@ feature 'Sign in', :devise do
10
10
  # Then I see an invalid credentials message
11
11
  scenario 'user cannot sign in if not registered' do
12
12
  signin('test@example.com', 'please123')
13
- expect(page).to have_content 'Invalid email address or password'
13
+ expect(page).to have_content I18n.t 'devise.failure.not_found_in_database'
14
14
  end
15
15
 
16
16
  # Scenario: User can sign in with valid credentials
@@ -21,7 +21,7 @@ feature 'Sign in', :devise do
21
21
  scenario 'user can sign in with valid credentials' do
22
22
  user = FactoryGirl.create(:user)
23
23
  signin(user.email, user.password)
24
- expect(page).to have_content 'Signed in successfully.'
24
+ expect(page).to have_content I18n.t 'devise.sessions.signed_in'
25
25
  end
26
26
 
27
27
  # Scenario: User cannot sign in with wrong email
@@ -32,7 +32,7 @@ feature 'Sign in', :devise do
32
32
  scenario 'user cannot sign in with wrong email' do
33
33
  user = FactoryGirl.create(:user)
34
34
  signin('invalid@email.com', user.password)
35
- expect(page).to have_content 'Invalid email address or password'
35
+ expect(page).to have_content I18n.t 'devise.failure.not_found_in_database'
36
36
  end
37
37
 
38
38
  # Scenario: User cannot sign in with wrong password
@@ -43,7 +43,7 @@ feature 'Sign in', :devise do
43
43
  scenario 'user cannot sign in with wrong password' do
44
44
  user = FactoryGirl.create(:user)
45
45
  signin(user.email, 'invalidpass')
46
- expect(page).to have_content 'Invalid email or password'
46
+ expect(page).to have_content I18n.t 'devise.failure.not_found_in_database'
47
47
  end
48
48
 
49
49
  end
@@ -11,9 +11,9 @@ feature 'Sign out', :devise do
11
11
  scenario 'user signs out successfully' do
12
12
  user = FactoryGirl.create(:user)
13
13
  signin(user.email, user.password)
14
- expect(page).to have_content 'Signed in successfully.'
14
+ expect(page).to have_content I18n.t 'devise.sessions.signed_in'
15
15
  click_link 'Sign out'
16
- expect(page).to have_content 'Signed out successfully.'
16
+ expect(page).to have_content I18n.t 'devise.sessions.signed_out'
17
17
  end
18
18
 
19
19
  end
@@ -22,7 +22,7 @@ feature 'User delete', :devise, :js do
22
22
  visit edit_user_registration_path(user)
23
23
  click_button 'Cancel my account'
24
24
  page.driver.browser.switch_to.alert.accept
25
- expect(page).to have_content 'Bye! Your account was successfully cancelled. We hope to see you again soon.'
25
+ expect(page).to have_content I18n.t 'devise.registrations.destroyed'
26
26
  end
27
27
 
28
28
  end
@@ -22,7 +22,7 @@ feature 'User edit', :devise do
22
22
  fill_in 'Email', :with => 'newemail@example.com'
23
23
  fill_in 'Current password', :with => user.password
24
24
  click_button 'Update'
25
- expect(page).to have_content 'Your account has been updated successfully.'
25
+ expect(page).to have_content I18n.t 'devise.registrations.updated'
26
26
  end
27
27
 
28
28
  # Scenario: User cannot edit another user's profile
@@ -10,7 +10,7 @@ feature 'Sign Up', :devise do
10
10
  # Then I see a successful sign up message
11
11
  scenario 'visitor can sign up with valid email address and password' do
12
12
  sign_up_with('test@example.com', 'please123', 'please123')
13
- expect(page).to have_content 'Welcome! You have signed up successfully.'
13
+ expect(page).to have_content I18n.t 'devise.registrations.signed_up'
14
14
  end
15
15
 
16
16
  # Scenario: Visitor cannot sign up with invalid email address
@@ -1,3 +1,3 @@
1
1
  module RailsAppsTesting
2
- VERSION = "0.3.8"
2
+ VERSION = "0.3.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_apps_testing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.8
4
+ version: 0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Kehoe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-14 00:00:00.000000000 Z
11
+ date: 2014-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler