active_decorator-rspec 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ca869491d2577b00db7ec1ab2bf8619a7bfeea5c
4
- data.tar.gz: bcbb7a07959fd0aff54bb39c5d9ca14f9d63bfcc
3
+ metadata.gz: 10f01a661484167d106f27a036db625a43fc47b4
4
+ data.tar.gz: 35a7a5db506ecc5a729391f518b41355f4c199d0
5
5
  SHA512:
6
- metadata.gz: 530929fab3b7c4ddb6e67ef14a5455f6a8b711d672bf4483bed57da054e18412f09b60490c774ac9820a09bbf00bd38b3270c5889a57860c924dd6cf7c04b1c3
7
- data.tar.gz: a0270161143dfaa285bc151d00562f8d4360acfef953986f7a20930e4ddcc7f33132710fc8dc285a546fe5c3e0620aadb3307b416b90461c3a183690c601bd11
6
+ metadata.gz: 9ab13891947b5fda384a510ffc6328221ab302e498bcc22be72e60edea6f305ad33767d57300cc2f1cb60829c88c5e390246b6a7ddeb76b0db2d6becf82c9556
7
+ data.tar.gz: 1d8dc0ff6149a094d1b92ebe1829d5e7b55d76cf6718f68e501135521826cff6665408a2a6206666fed09100c9a5e0ddd21e6019c4381bd2d257a2fd85793e36
data/.gitignore CHANGED
@@ -25,3 +25,4 @@ tmp
25
25
  *.a
26
26
  mkmf.log
27
27
  log/*.log
28
+ gemfiles/*.lock
data/.travis.yml CHANGED
@@ -2,7 +2,20 @@ language: ruby
2
2
 
3
3
  rvm:
4
4
  - 2.0.0
5
- - 2.1.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
@@ -0,0 +1,9 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec path: '../'
4
+
5
+ gem 'rails', '5.0.0.beta4'
6
+
7
+ group :test do
8
+ gem 'coveralls', require: false
9
+ end
@@ -1,5 +1,5 @@
1
1
  module ActiveDecorator
2
2
  module RSpec
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  end
@@ -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.new
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.7
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-01-26 00:00:00.000000000 Z
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