rails_apps_testing 0.3.1 → 0.3.2

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: 659410a3e1a2ea8481602b873e08fff9ccfe66dd
4
- data.tar.gz: 0eb3a90904d9de60d8371fcb4ad517461b5139ae
3
+ metadata.gz: 321936e474d94997339559e5fcc2ad17ae1eda75
4
+ data.tar.gz: e56e83978437da258e404dc4c000ddcd3c1371c1
5
5
  SHA512:
6
- metadata.gz: 5cee3ca1acf09a46fc96a295557256aab7b95bf3d3d6d9abc02d2ba7b2e78178648816fe191b650b82966e223eaf275511d24972432bf1c5e446c4979ee5cc48
7
- data.tar.gz: 9f97b36a6724dee715e417bc5d3a06ed44faa938d7514322aca9de21ca5fc57a8a7a77a1d07936830a342431b3b1d2aad4b4d464ad84ea061e24311cb1c41e3f
6
+ metadata.gz: a21937c93b65482396cd70c9e8574788b8707d1e6086232116e93efa73a32824389080f9b965ae4bbfb7228b006fbba3e2b4ea1e7698fe4ba11e4c903e15a5b0
7
+ data.tar.gz: 73df839dc32b18c8db37b659de2ce12d6d9a7c7a8539630f5c6aa8c8a9801a1ebe6a954ebe6ca33085e914ad99a8939bdcdd2f9c5ab21cafbe515cbf2c441ed3
data/CHANGELOG.textile CHANGED
@@ -1,5 +1,9 @@
1
1
  h1. CHANGELOG
2
2
 
3
+ h3. 0.3.2 June 6, 2014
4
+
5
+ * add a User model test for OmniAuth
6
+
3
7
  h3. 0.3.1 June 6, 2014
4
8
 
5
9
  * add a User model test for Devise
@@ -43,6 +43,8 @@ module Testing
43
43
  copy_file 'spec/omniauth/features/users/sign_in_spec.rb', 'spec/features/users/sign_in_spec.rb'
44
44
  copy_file 'spec/omniauth/features/users/sign_out_spec.rb', 'spec/features/users/sign_out_spec.rb'
45
45
  copy_file 'spec/omniauth/controllers/sessions_controller_spec.rb', 'spec/controllers/sessions_controller_spec.rb'
46
+ copy_file 'spec/omniauth/factories/users.rb', 'spec/factories/users.rb'
47
+ copy_file 'spec/omniauth/models/user_spec.rb', 'spec/models/user_spec.rb'
46
48
  end
47
49
  end
48
50
 
@@ -0,0 +1,7 @@
1
+ FactoryGirl.define do
2
+ factory :user do
3
+ name "Test User"
4
+ email "test@example.com"
5
+ password "please123"
6
+ end
7
+ end
@@ -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
@@ -21,8 +21,8 @@ module Omniauth
21
21
  def signin
22
22
  visit root_path
23
23
  page.should have_content("Sign in")
24
- click_link "Sign in"
25
24
  auth_mock
25
+ click_link "Sign in"
26
26
  fill_in 'user_email', with: 'test@example.com'
27
27
  click_button "Sign in"
28
28
  end
@@ -1,3 +1,3 @@
1
1
  module RailsAppsTesting
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_apps_testing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Kehoe
@@ -71,8 +71,10 @@ files:
71
71
  - lib/generators/testing/configure/templates/spec/devise/support/helpers.rb
72
72
  - lib/generators/testing/configure/templates/spec/devise/support/helpers/session_helpers.rb
73
73
  - lib/generators/testing/configure/templates/spec/omniauth/controllers/sessions_controller_spec.rb
74
+ - lib/generators/testing/configure/templates/spec/omniauth/factories/users.rb
74
75
  - lib/generators/testing/configure/templates/spec/omniauth/features/users/sign_in_spec.rb
75
76
  - lib/generators/testing/configure/templates/spec/omniauth/features/users/sign_out_spec.rb
77
+ - lib/generators/testing/configure/templates/spec/omniauth/models/user_spec.rb
76
78
  - lib/generators/testing/configure/templates/spec/omniauth/support/helpers.rb
77
79
  - lib/generators/testing/configure/templates/spec/omniauth/support/helpers/omniauth.rb
78
80
  - lib/rails_apps_testing.rb