active_decorator-rspec 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +14 -1
- data/gemfiles/Gemfile-rails.5.0.0.beta4 +9 -0
- data/lib/active_decorator/rspec/version.rb +1 -1
- data/lib/active_decorator/rspec.rb +5 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10f01a661484167d106f27a036db625a43fc47b4
|
4
|
+
data.tar.gz: 35a7a5db506ecc5a729391f518b41355f4c199d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ab13891947b5fda384a510ffc6328221ab302e498bcc22be72e60edea6f305ad33767d57300cc2f1cb60829c88c5e390246b6a7ddeb76b0db2d6becf82c9556
|
7
|
+
data.tar.gz: 1d8dc0ff6149a094d1b92ebe1829d5e7b55d76cf6718f68e501135521826cff6665408a2a6206666fed09100c9a5e0ddd21e6019c4381bd2d257a2fd85793e36
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -2,7 +2,20 @@ language: ruby
|
|
2
2
|
|
3
3
|
rvm:
|
4
4
|
- 2.0.0
|
5
|
-
- 2.1.
|
5
|
+
- 2.1.8
|
6
|
+
- 2.2.4
|
7
|
+
- 2.3.0
|
8
|
+
|
9
|
+
gemfile:
|
10
|
+
- Gemfile
|
11
|
+
- gemfiles/Gemfile-rails.5.0.0.beta4
|
12
|
+
|
13
|
+
matrix:
|
14
|
+
exclude:
|
15
|
+
- rvm: 2.0.0
|
16
|
+
gemfile: gemfiles/Gemfile-rails.5.0.0.beta4
|
17
|
+
- rvm: 2.1.8
|
18
|
+
gemfile: gemfiles/Gemfile-rails.5.0.0.beta4
|
6
19
|
|
7
20
|
before_install:
|
8
21
|
- gem update bundler
|
@@ -15,7 +15,11 @@ module ActiveDecorator
|
|
15
15
|
ActionController::Base
|
16
16
|
end
|
17
17
|
controller = Class.new(base_class).new
|
18
|
-
controller.request = ActionController::TestRequest.
|
18
|
+
controller.request = if ActionController::TestRequest.respond_to?(:create)
|
19
|
+
ActionController::TestRequest.create
|
20
|
+
else
|
21
|
+
ActionController::TestRequest.new
|
22
|
+
end
|
19
23
|
if ActiveDecorator::ViewContext.respond_to?(:current=)
|
20
24
|
ActiveDecorator::ViewContext.current = controller.view_context
|
21
25
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_decorator-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mizokami
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -150,6 +150,7 @@ files:
|
|
150
150
|
- README.md
|
151
151
|
- Rakefile
|
152
152
|
- active_decorator-rspec.gemspec
|
153
|
+
- gemfiles/Gemfile-rails.5.0.0.beta4
|
153
154
|
- lib/active_decorator/rspec.rb
|
154
155
|
- lib/active_decorator/rspec/version.rb
|
155
156
|
- spec/decorators/author_decorator_spec.rb
|