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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cede05152c48a85f2c0ff27659b3210a48b827e0
4
- data.tar.gz: 4aca7528736e36b2200beb99f346b216c5f69337
3
+ metadata.gz: 7a14c8b7ce759d512371980b7e7b6ab79f71ff62
4
+ data.tar.gz: 54b5eeaab6c177916c16c9a66f9f0dd0cee73d1a
5
5
  SHA512:
6
- metadata.gz: 12cc3d23f46441c2d2c7d710461d89a7271e60ae5b1e67f8ea8ed5e154d3ef91ae3c153d77b4262413df6f0325fd5a659bebafbd173bb60e8a4aa6868f7cb768
7
- data.tar.gz: 37331375c5e99a6903f0e8f0564e5b09aa08f814fdbe16203a22e1ea310b739d135fb4ee2330a7022fd34061b332f6c5c92524a4e78435d5859ec4165b7ae64d
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'
@@ -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
- expect(page).to have_content I18n.t 'devise.registrations.updated'
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
@@ -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
- expect(page).to have_content I18n.t 'devise.registrations.signed_up'
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
@@ -1,3 +1,3 @@
1
1
  module RailsAppsTesting
2
- VERSION = "0.3.10"
2
+ VERSION = "0.3.11"
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.10
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-08-20 00:00:00.000000000 Z
11
+ date: 2014-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler