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 +4 -4
- data/CHANGELOG.textile +4 -0
- data/lib/generators/testing/configure/templates/spec/devise/features/users/sign_in_spec.rb +4 -4
- data/lib/generators/testing/configure/templates/spec/devise/features/users/sign_out_spec.rb +2 -2
- data/lib/generators/testing/configure/templates/spec/devise/features/users/user_delete_spec.rb +1 -1
- data/lib/generators/testing/configure/templates/spec/devise/features/users/user_edit_spec.rb +1 -1
- data/lib/generators/testing/configure/templates/spec/devise/features/visitors/sign_up_spec.rb +1 -1
- data/lib/rails_apps_testing/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 724bef806ddfeea54fe29f56ad6b2ec8dea2c09e
|
4
|
+
data.tar.gz: 55657cd9c81e794e7012c729b3ed557e20fa3a2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 514b1fc83ef57f293cde0894723d7664970d62841ba12b0cd085afa89c06b1fea4b40ced8fff360c18df3585ba00c9c1f0cc5e4214297049cbd3935778a9396a
|
7
|
+
data.tar.gz: e8b4202badfb9ed842da72ede0252d527fed2e295a7d931b4178e6752b09dfa32343bbd27d14d05a07ef42d175b3f0319c78bbbaadde1cc097d89e53d5d5fc78
|
data/CHANGELOG.textile
CHANGED
@@ -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
|
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 '
|
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
|
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
|
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 '
|
14
|
+
expect(page).to have_content I18n.t 'devise.sessions.signed_in'
|
15
15
|
click_link 'Sign out'
|
16
|
-
expect(page).to have_content '
|
16
|
+
expect(page).to have_content I18n.t 'devise.sessions.signed_out'
|
17
17
|
end
|
18
18
|
|
19
19
|
end
|
data/lib/generators/testing/configure/templates/spec/devise/features/users/user_delete_spec.rb
CHANGED
@@ -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
|
25
|
+
expect(page).to have_content I18n.t 'devise.registrations.destroyed'
|
26
26
|
end
|
27
27
|
|
28
28
|
end
|
data/lib/generators/testing/configure/templates/spec/devise/features/users/user_edit_spec.rb
CHANGED
@@ -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 '
|
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
|
data/lib/generators/testing/configure/templates/spec/devise/features/visitors/sign_up_spec.rb
CHANGED
@@ -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 '
|
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
|
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.
|
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-
|
11
|
+
date: 2014-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|