rails_apps_testing 0.3.6 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.textile +4 -0
- data/lib/generators/testing/configure/templates/spec/devise/features/users/sign_in_spec.rb +3 -3
- data/lib/generators/testing/configure/templates/spec/devise/features/users/user_edit_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: d704568fae872c42ad4a096d343d01b15ae6ce2b
|
4
|
+
data.tar.gz: f656eeddadb2445e0ceeb057e00317df7dfaffc7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abdf58f76ccbcc68537e7e12ffb8d89854eed3a9263d2240593a6789b3c8b531852be7c41f2847e6c775d520d43fef05a00d31a8efcb1d1184f37339219677ee
|
7
|
+
data.tar.gz: 71028c3eb80ea43cc1e548e14b75ea49587fb348e3f413f0eb7d249668d138a832f679bf76c8cbdb3b71421117a834aab28304fa311620c35a3fbee4ffb1ac94
|
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 'Invalid email or password
|
13
|
+
expect(page).to have_content 'Invalid email address or password'
|
14
14
|
end
|
15
15
|
|
16
16
|
# Scenario: User can sign in with valid credentials
|
@@ -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 or password
|
35
|
+
expect(page).to have_content 'Invalid email address or password'
|
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 'Invalid email or password'
|
47
47
|
end
|
48
48
|
|
49
49
|
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 'Your account has been updated successfully.'
|
26
26
|
end
|
27
27
|
|
28
28
|
# Scenario: User cannot edit another user's profile
|
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.7
|
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-
|
11
|
+
date: 2014-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|