rails_apps_testing 0.3.10 → 0.3.11
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 +5 -0
- data/lib/generators/testing/configure/configure_generator.rb +1 -0
- data/lib/generators/testing/configure/templates/spec/devise/features/users/user_edit_spec.rb +2 -1
- data/lib/generators/testing/configure/templates/spec/devise/features/visitors/sign_up_spec.rb +2 -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: 7a14c8b7ce759d512371980b7e7b6ab79f71ff62
|
4
|
+
data.tar.gz: 54b5eeaab6c177916c16c9a66f9f0dd0cee73d1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a5cb81309cfbd3d38fcf519cd3ad37152150ad205992571384f27d382b9a9c62116acd5dc4e3dbd5acbca141cbb46e3d7c3335d35fcd72c7dd1b417ee7b3835
|
7
|
+
data.tar.gz: 950a42b2ffdb1c19a2a06908fd664575569e686aed67f99dfea50f08c0b09cb1d92ca88ca491da7ad4f86098f4f5e7e247583dc6971637029d05e874a8a923bf
|
data/CHANGELOG.textile
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
h1. CHANGELOG
|
2
2
|
|
3
|
+
h3. 0.3.11 September 12, 2014
|
4
|
+
|
5
|
+
* accommodate RSpec 3.1 change to rails_helper.rb file (https://github.com/rspec/rspec-rails/issues/1106)
|
6
|
+
* accommodate Devise Confirmable module (contributed by Walther Diechmann)
|
7
|
+
|
3
8
|
h3. 0.3.10 August 20, 2014
|
4
9
|
|
5
10
|
* fix match against error messages in the Devise locale file
|
@@ -22,6 +22,7 @@ module Testing
|
|
22
22
|
inject_into_file 'config/application.rb', tweaks + "\n", :after => "Rails::Application\n"
|
23
23
|
copy_file 'capybara.rb', 'spec/support/capybara.rb'
|
24
24
|
gsub_file 'spec/rails_helper.rb', /config.use_transactional_fixtures = true/, "config.use_transactional_fixtures = false"
|
25
|
+
gsub_file 'spec/rails_helper.rb', /# Dir/, "Dir"
|
25
26
|
copy_file 'database_cleaner.rb', 'spec/support/database_cleaner.rb'
|
26
27
|
copy_file 'factory_girl.rb', 'spec/support/factory_girl.rb'
|
27
28
|
when 'devise'
|
data/lib/generators/testing/configure/templates/spec/devise/features/users/user_edit_spec.rb
CHANGED
@@ -22,7 +22,8 @@ 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
|
-
|
25
|
+
txts = [I18n.t( 'devise.registrations.updated'), I18n.t( 'devise.registrations.update_needs_confirmation')]
|
26
|
+
expect(page).to have_content(/.*#{txts[0]}.*|.*#{txts[1]}.*/)
|
26
27
|
end
|
27
28
|
|
28
29
|
# 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,8 @@ 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
|
-
|
13
|
+
txts = [I18n.t( 'devise.registrations.signed_up'), I18n.t( 'devise.registrations.signed_up_but_unconfirmed')]
|
14
|
+
expect(page).to have_content(/.*#{txts[0]}.*|.*#{txts[1]}.*/)
|
14
15
|
end
|
15
16
|
|
16
17
|
# 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.11
|
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-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|