rails_apps_testing 0.3.4 → 0.3.5

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: f34df3a109df984c6095322cf87b7bc925a60519
4
- data.tar.gz: 521c9ef1a1ecc37f8bd8fd8161fb86517ac9ae82
3
+ metadata.gz: cd3a4334e5d75ef8bb4af8664a1429d68046ce29
4
+ data.tar.gz: 51217117d8dae4a3f39a963c300cf75d6ca18d07
5
5
  SHA512:
6
- metadata.gz: 00de4fa73e2471f9c9fc32225dfecbdcfd7eff8ab5aec85ba4e42e584c1993dc2dd8f15e714561f695c6043ea0d9f7327928744add0c26511d973f2b3a36d844
7
- data.tar.gz: 84ebcd5b2cc9eb0477ff424c9106b0af481483b357710875fea0403a2ba7e1def1a783c7fd5f27815f0c372fd7210e6d843a4acae88880b5d9cfe839dd4ff02c
6
+ metadata.gz: 9125444e2b7c3fdc7ba5fac18b32e5274718aa05ff441893762cca2439eacf9870bce30bfacdce36df0ea4f5f0fd22728dcba16494f95dd1bc8932134e1e767b
7
+ data.tar.gz: a5dd93be21f9dffd673567ba54f4c4c7925380fb82dd45926d3b040a17a9f1fdad28c5e45b4409be807e04025a828fe29b97b3c6cac952503d01581112a57068
data/CHANGELOG.textile CHANGED
@@ -1,5 +1,9 @@
1
1
  h1. CHANGELOG
2
2
 
3
+ h3. 0.3.5 June 26, 2014
4
+
5
+ * remove 'capture email' feature from 'rails-omniauth' example application
6
+
3
7
  h3. 0.3.4 June 14, 2014
4
8
 
5
9
  * add a suite of tests for Pundit
@@ -16,9 +16,9 @@ describe SessionsController, :omniauth do
16
16
  expect(session[:user_id]).not_to be_nil
17
17
  end
18
18
 
19
- it "redirects the user to the user profile" do
19
+ it "redirects to the home page" do
20
20
  post :create, provider: :twitter
21
- expect(response).to redirect_to edit_user_path(1)
21
+ expect(response).to redirect_to root_url
22
22
  end
23
23
 
24
24
  end
@@ -1,7 +1,5 @@
1
1
  FactoryGirl.define do
2
2
  factory :user do
3
3
  name "Test User"
4
- email "test@example.com"
5
- password "please123"
6
4
  end
7
5
  end
@@ -11,7 +11,6 @@ feature 'Sign in', :omniauth do
11
11
  # Then I see a success message
12
12
  scenario "user can sign in with valid account" do
13
13
  signin
14
- expect(page).to have_content("test@example.com")
15
14
  expect(page).to have_content("Sign out")
16
15
  end
17
16
 
@@ -1,13 +1,13 @@
1
1
  describe User do
2
2
 
3
- before(:each) { @user = User.new(email: 'user@example.com') }
3
+ before(:each) { @user = FactoryGirl.create(:user) }
4
4
 
5
5
  subject { @user }
6
6
 
7
- it { should respond_to(:email) }
7
+ it { should respond_to(:name) }
8
8
 
9
- it "#email returns a string" do
10
- expect(@user.email).to match 'user@example.com'
9
+ it "#name returns a string" do
10
+ expect(@user.name).to match 'Test User'
11
11
  end
12
12
 
13
13
  end
@@ -23,8 +23,6 @@ module Omniauth
23
23
  expect(page).to have_content("Sign in")
24
24
  auth_mock
25
25
  click_link "Sign in"
26
- fill_in 'user_email', with: 'test@example.com'
27
- click_button "Sign in"
28
26
  end
29
27
  end
30
28
 
@@ -1,3 +1,3 @@
1
1
  module RailsAppsTesting
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
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.4
4
+ version: 0.3.5
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-15 00:00:00.000000000 Z
11
+ date: 2014-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler