lookout-rack-test 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/features/support/env.rb +1 -1
- data/lib/lookout/rack/test/cucumber/server.rb +5 -1
- data/lib/lookout/rack/test/cucumber.rb +3 -5
- data/lib/lookout/rack/test/rspec/route_helper.rb +6 -1
- data/lib/lookout/rack/test/rspec.rb +1 -1
- data/lib/lookout/rack/test/version.rb +1 -1
- data/lib/lookout/rack/test.rb +9 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZGI4YjI5MmQxZjVhMWNhNDJlZDQxYWIwOGZiMzk0YzU0NzAwYzM0MA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZjlhMzVlOGE3ZWU4Mzc3MTc1YTcxNGE5MmM5ZTc0ZmIzY2Y4MDFjYw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
N2I3Y2RjMjNmNDE0YjJhNWRhZWI4MWY3YTRmZmEwNmRjY2RmOTFlMGFlZjFi
|
10
|
+
MmUxZjhlODAyN2YyMjVhODY0NTIyZjVhYWQ5OTU5YTQ1NzE3YWU2YjNiM2E0
|
11
|
+
Njg2MzdjMDZiZDQ2ZWQwZTM1ZGI2YTI3ZTg3NjA3MmIzMzg5Yjc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZTZiYTg1MzQyOWVjMDUzMzQxOWQ4YzIzNTc3ZDhhOGY4ODBiOTg3ZDMwYjE4
|
14
|
+
ZDU1M2E5MWRiMjI0NGE2ODY0MWUxNWRiODU0NjdlZTBiODA3YzkwZWQ1OTYx
|
15
|
+
MDU5ZDcxYjBmNzAxYzM5YWNiZmM3YTEwMmM2Nzg4NjkzZWUxOTI=
|
data/features/support/env.rb
CHANGED
@@ -1,9 +1,13 @@
|
|
1
1
|
require 'rack/test'
|
2
|
+
require 'lookout/rack/test'
|
2
3
|
|
3
4
|
module Lookout::Rack::Test::Cucumber
|
4
5
|
module Server
|
5
6
|
def app
|
6
|
-
@app
|
7
|
+
return @app if @app
|
8
|
+
|
9
|
+
klass = ::Lookout::Rack::Test.app || $application_class
|
10
|
+
@app = klass.new if klass
|
7
11
|
end
|
8
12
|
end
|
9
13
|
end
|
@@ -7,10 +7,12 @@ require 'lookout/rack/test/cucumber/transforms'
|
|
7
7
|
require 'lookout/rack/test/cucumber/general_steps'
|
8
8
|
require 'lookout/rack/test/cucumber/before'
|
9
9
|
|
10
|
-
require 'lookout/rack/test/cucumber/server'
|
10
|
+
require 'lookout/rack/test/cucumber/server'
|
11
11
|
|
12
12
|
module Lookout::Rack::Test
|
13
13
|
module Cucumber
|
14
|
+
include Lookout::Rack::Test::Cucumber::Server
|
15
|
+
|
14
16
|
def render_string(buffer, opts={})
|
15
17
|
::Liquid::Template.parse(buffer).render(template_vars.merge(opts))
|
16
18
|
end
|
@@ -22,10 +24,6 @@ module Lookout::Rack::Test
|
|
22
24
|
def current_locale
|
23
25
|
I18n.locale = ENV['CUCUMBER_LOCALE'] || 'en'
|
24
26
|
end
|
25
|
-
|
26
|
-
def app
|
27
|
-
@app ||= $application_class.new if $application_class
|
28
|
-
end
|
29
27
|
end
|
30
28
|
end
|
31
29
|
|
@@ -1,7 +1,12 @@
|
|
1
|
+
require 'lookout/rack/test'
|
2
|
+
|
1
3
|
module Lookout::Rack::Test::RSpec
|
2
4
|
module RouteHelper
|
3
5
|
def app
|
4
|
-
@app
|
6
|
+
return @app if @app
|
7
|
+
|
8
|
+
klass = ::Lookout::Rack::Test.app || $application_class
|
9
|
+
@app = klass.new
|
5
10
|
end
|
6
11
|
end
|
7
12
|
end
|
data/lib/lookout/rack/test.rb
CHANGED