rails_apps_testing 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a45babcf9e91ec332bf11ecdb5f63e59c635cdf4
4
- data.tar.gz: 53d894e50a66f4ef042edab27d2e611432dc5c59
3
+ metadata.gz: 659410a3e1a2ea8481602b873e08fff9ccfe66dd
4
+ data.tar.gz: 0eb3a90904d9de60d8371fcb4ad517461b5139ae
5
5
  SHA512:
6
- metadata.gz: 77482fbc848d257bac0d573e23b24b337401406fba4a84178084316805f1daefdc509bfa99fb03f61e1225914dfc4372959d7ee26e0b274f462eb1626259c90e
7
- data.tar.gz: 6c301191cb4e2cdda94315187fc4f48d010d4e270cbdc23f616f6a7323bda1866e044a8d148c25dabda4335bc29bdc5908d14e187f4b90bf8b172e41422deb7d
6
+ metadata.gz: 5cee3ca1acf09a46fc96a295557256aab7b95bf3d3d6d9abc02d2ba7b2e78178648816fe191b650b82966e223eaf275511d24972432bf1c5e446c4979ee5cc48
7
+ data.tar.gz: 9f97b36a6724dee715e417bc5d3a06ed44faa938d7514322aca9de21ca5fc57a8a7a77a1d07936830a342431b3b1d2aad4b4d464ad84ea061e24311cb1c41e3f
data/CHANGELOG.textile CHANGED
@@ -1,5 +1,9 @@
1
1
  h1. CHANGELOG
2
2
 
3
+ h3. 0.3.1 June 6, 2014
4
+
5
+ * add a User model test for Devise
6
+
3
7
  h3. 0.3.0 June 6, 2014
4
8
 
5
9
  * add a suite of tests for OmniAuth
@@ -29,12 +29,13 @@ module Testing
29
29
  copy_file 'spec/devise/support/helpers/session_helpers.rb', 'spec/support/helpers/session_helpers.rb'
30
30
  copy_file 'spec/devise/support/helpers.rb', 'spec/support/helpers.rb'
31
31
  copy_file 'spec/devise/factories/users.rb', 'spec/factories/users.rb'
32
+ copy_file 'spec/devise/models/user_spec.rb', 'spec/models/user_spec.rb'
32
33
  copy_file 'spec/devise/features/users/sign_in_spec.rb', 'spec/features/users/sign_in_spec.rb'
33
34
  copy_file 'spec/devise/features/users/sign_out_spec.rb', 'spec/features/users/sign_out_spec.rb'
34
35
  copy_file 'spec/devise/features/users/user_delete_spec.rb', 'spec/features/users/user_delete_spec.rb'
35
36
  copy_file 'spec/devise/features/users/user_edit_spec.rb', 'spec/features/users/user_edit_spec.rb'
36
- copy_file 'spec/features/users/user_index_spec.rb', 'spec/features/users/user_index_spec.rb'
37
- copy_file 'spec/features/users/user_show_spec.rb', 'spec/features/users/user_show_spec.rb'
37
+ copy_file 'spec/devise/features/users/user_index_spec.rb', 'spec/features/users/user_index_spec.rb'
38
+ copy_file 'spec/devise/features/users/user_show_spec.rb', 'spec/features/users/user_show_spec.rb'
38
39
  copy_file 'spec/devise/features/visitors/sign_up_spec.rb', 'spec/features/visitors/sign_up_spec.rb'
39
40
  when 'omniauth'
40
41
  copy_file 'spec/omniauth/support/helpers/omniauth.rb', 'spec/support/helpers/omniauth.rb'
@@ -0,0 +1,13 @@
1
+ describe User do
2
+
3
+ before(:each) { @user = User.new(email: 'user@example.com') }
4
+
5
+ subject { @user }
6
+
7
+ it { should respond_to(:email) }
8
+
9
+ it "#email returns a string" do
10
+ expect(@user.email).to match 'user@example.com'
11
+ end
12
+
13
+ end
@@ -1,3 +1,3 @@
1
1
  module RailsAppsTesting
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
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.0
4
+ version: 0.3.1
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-06-06 00:00:00.000000000 Z
11
+ date: 2014-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -66,6 +66,7 @@ files:
66
66
  - lib/generators/testing/configure/templates/spec/devise/features/users/user_index_spec.rb
67
67
  - lib/generators/testing/configure/templates/spec/devise/features/users/user_show_spec.rb
68
68
  - lib/generators/testing/configure/templates/spec/devise/features/visitors/sign_up_spec.rb
69
+ - lib/generators/testing/configure/templates/spec/devise/models/user_spec.rb
69
70
  - lib/generators/testing/configure/templates/spec/devise/support/devise.rb
70
71
  - lib/generators/testing/configure/templates/spec/devise/support/helpers.rb
71
72
  - lib/generators/testing/configure/templates/spec/devise/support/helpers/session_helpers.rb