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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0115b4fb78991e0c486f0895fdce56c606018091
|
4
|
+
data.tar.gz: 658729fe3a5c75566d99811a0dfa6619999f84c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,
|
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] == :
|
13
|
+
elsif example.metadata[:type] == :feature
|
14
14
|
Sidekiq::Testing.inline!
|
15
15
|
else
|
16
16
|
Sidekiq::Testing.fake!
|
data/lib/rspectacular/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|