rspectacular 0.23.1 → 0.24.0

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: 7bdacff16da928df216105f81c3384d104e3ab72
4
- data.tar.gz: 647835add38af219928c9c4325a330f05a7c23f2
3
+ metadata.gz: 0115b4fb78991e0c486f0895fdce56c606018091
4
+ data.tar.gz: 658729fe3a5c75566d99811a0dfa6619999f84c7
5
5
  SHA512:
6
- metadata.gz: f1eace16c79d4362f20abdea296662011d299f6c0864a97f9a906c6bba1a3a12ff2323043536b47905ba15b217a528bddc20231bdac9d315f2a9cb720592593b
7
- data.tar.gz: 76e5eb029f230463a46214c75f58b60d2ee4d10ed2d24217696effa7a829fb4359e45d4a38f7ff565b9ff59dd6a1b310f18f2ffa07de432574d7ab55bec62b7f
6
+ metadata.gz: 7ad46850a1a5fc0e47886515bd4254eb5e1c160125c3ea9420cc60cb5557c44d829f4a085740fcfbe6b68488934065ec279b2bf65c7c1f3d543807d60446b77c
7
+ data.tar.gz: 5707e6e85faf68401a5659ab7eada9d8749aa9cea9c399b4e99f7098abea220fd4340d4a4a7ad1e70e4395636f3470ed8abea90caffba72e1c1cc7911d40014f
@@ -1,14 +1,3 @@
1
- if defined? Devise
2
- def log_in(user, options = {})
3
- initial_path = options.fetch(:initial_path, :root_path)
4
- visit send(initial_path, :auth_token => user.authentication_token)
5
- end
6
-
7
- def log_out
8
- visit destroy_user_session_path
9
- end
10
- end
11
-
12
1
  def authenticate_api_as(user)
13
2
  auth_token = user.respond_to?(:auth_token) ? user.auth_token : user
14
3
 
@@ -8,7 +8,12 @@ begin
8
8
  Devise.stretches = 1
9
9
 
10
10
  RSpec.configure do |config|
11
- config.include Devise::TestHelpers, :type => :controller
11
+ config.include Devise::TestHelpers, :type => :controller
12
+ config.include Warden::Test::Helpers, :type => :feature
13
+
14
+ config.before(:suite, :type => :feature) do |example|
15
+ Warden.test_mode!
16
+ end
12
17
  end
13
18
  rescue LoadError
14
19
  end
@@ -10,7 +10,7 @@ begin
10
10
  Sidekiq::Testing.fake!
11
11
  elsif example.metadata[:queue] == :immediately_execute
12
12
  Sidekiq::Testing.inline!
13
- elsif example.metadata[:type] == :acceptance
13
+ elsif example.metadata[:type] == :feature
14
14
  Sidekiq::Testing.inline!
15
15
  else
16
16
  Sidekiq::Testing.fake!
@@ -1,3 +1,3 @@
1
1
  module RSpectacular
2
- VERSION = '0.23.1'
2
+ VERSION = '0.24.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspectacular
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.1
4
+ version: 0.24.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - jfelchner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-09 00:00:00.000000000 Z
11
+ date: 2014-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec