rails_apps_testing 0.3.2 → 0.3.3

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: 321936e474d94997339559e5fcc2ad17ae1eda75
4
- data.tar.gz: e56e83978437da258e404dc4c000ddcd3c1371c1
3
+ metadata.gz: 48da5c7f7615ef3eb48f568f3491dd929094be3b
4
+ data.tar.gz: 9cafe49a265735a5e61b830c4142167b331a87f8
5
5
  SHA512:
6
- metadata.gz: a21937c93b65482396cd70c9e8574788b8707d1e6086232116e93efa73a32824389080f9b965ae4bbfb7228b006fbba3e2b4ea1e7698fe4ba11e4c903e15a5b0
7
- data.tar.gz: 73df839dc32b18c8db37b659de2ce12d6d9a7c7a8539630f5c6aa8c8a9801a1ebe6a954ebe6ca33085e914ad99a8939bdcdd2f9c5ab21cafbe515cbf2c441ed3
6
+ metadata.gz: 7179e400a5d31849fdb7b3998f420bf6d041ff0bb6a0a02874bc5c7a8124182ff05d36794b04ab469aa62d69671cb8d3a235d7f3a4aebfd3fedc3becd31b2166
7
+ data.tar.gz: fec36ba9d9108c9fd6f8679f8c486d333b277178ff6b638bcc83473c1b9051b63980d5548c241876dc85b12cc7f273e5d17395f77b9387993c4c999cbdf4b8aa
data/CHANGELOG.textile CHANGED
@@ -1,5 +1,9 @@
1
1
  h1. CHANGELOG
2
2
 
3
+ h3. 0.3.3 June 7, 2014
4
+
5
+ * eliminate deprecated 'should' syntax for OmniAuth tests
6
+
3
7
  h3. 0.3.2 June 6, 2014
4
8
 
5
9
  * add a User model test for OmniAuth
@@ -13,7 +13,7 @@ describe SessionsController, :omniauth do
13
13
  it "creates a session" do
14
14
  expect(session[:user_id]).to be_nil
15
15
  post :create, provider: :twitter
16
- expect(session[:user_id]).to_not be_nil
16
+ expect(session[:user_id]).not_to be_nil
17
17
  end
18
18
 
19
19
  it "redirects the user to the user profile" do
@@ -30,7 +30,7 @@ describe SessionsController, :omniauth do
30
30
  end
31
31
 
32
32
  it "resets the session" do
33
- session[:user_id].should_not be_nil
33
+ expect(session[:user_id]).not_to be_nil
34
34
  delete :destroy
35
35
  expect(session[:user_id]).to be_nil
36
36
  end
@@ -11,8 +11,8 @@ 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
- page.should have_content("test@example.com")
15
- page.should have_content("Sign out")
14
+ expect(page).to have_content("test@example.com")
15
+ expect(page).to have_content("Sign out")
16
16
  end
17
17
 
18
18
  # Scenario: User cannot sign in with invalid account
@@ -23,9 +23,9 @@ feature 'Sign in', :omniauth do
23
23
  scenario 'user cannot sign in with invalid account' do
24
24
  OmniAuth.config.mock_auth[:twitter] = :invalid_credentials
25
25
  visit root_path
26
- page.should have_content("Sign in")
26
+ expect(page).to have_content("Sign in")
27
27
  click_link "Sign in"
28
- page.should have_content('Authentication error')
28
+ expect(page).to have_content('Authentication error')
29
29
  end
30
30
 
31
31
  end
@@ -20,7 +20,7 @@ module Omniauth
20
20
  module SessionHelpers
21
21
  def signin
22
22
  visit root_path
23
- page.should have_content("Sign in")
23
+ expect(page).to have_content("Sign in")
24
24
  auth_mock
25
25
  click_link "Sign in"
26
26
  fill_in 'user_email', with: 'test@example.com'
@@ -1,3 +1,3 @@
1
1
  module RailsAppsTesting
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
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.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Kehoe