active_decorator-rspec 0.0.4 → 0.0.5

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: 26b39f7ddaa881ee3acdcdc6f18dbc0fbe2b85b1
4
- data.tar.gz: 845ca34bfc20901b861704698286b0ee30a3d1ed
3
+ metadata.gz: 11702bcbf9f5f24e8b5af8264182ade9007607e9
4
+ data.tar.gz: d7410dea37d4a9a87ef95b2bbe71ad651726ce4c
5
5
  SHA512:
6
- metadata.gz: fb082cdc61b2c044f3976837cc3a3533ebd179dc180cf269720f7831fd78d3c1690ee51b91aa289c476a6619923d61f3ccce05735d134aff15445f332f9bd658
7
- data.tar.gz: 95d0e125d6f1cd512b195dc4261112400f82e7c4879d5c4dfc2a9ee6187d378a980840a9798a465f062cd1661a78b3b1dcd99fe62098abe91eef4f98ef3fa4a8
6
+ metadata.gz: 13223635f87b9977e3ec838c173320bf82b7c28a50073dfd1e6ace9d44a1683cf5e0722ce9974129b65b6a24004ef637cf01c6a20f5e52c2a89563b78f24abdc
7
+ data.tar.gz: 452853ea66c1b5a0c556506c58d56085833dd89dfc8315aa32f878a2d9dfcff77dd25d27bbe301cc087ca6633d279a5fc270106b12fd4de1886c3d0b47a8cf65
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # ActiveDecorator::RSpec
2
2
 
3
+ [![Gem Version](https://img.shields.io/gem/v/active_decorator-rspec.svg?style=flat)](http://rubygems.org/gems/active_decorator-rspec)
3
4
  [![Build Status](https://img.shields.io/travis/mizoR/active_decorator-rspec/master.svg?style=flat)](https://travis-ci.org/mizoR/active_decorator-rspec)
4
5
  [![Coverage Status](https://img.shields.io/coveralls/mizoR/active_decorator-rspec/master.svg?style=flat)](https://coveralls.io/r/mizoR/active_decorator-rspec?branch=master)
5
6
  [![Code Climate](https://img.shields.io/codeclimate/github/mizoR/active_decorator-rspec/badges/gpa.svg?style=flat)](https://codeclimate.com/github/mizoR/active_decorator-rspec)
@@ -1,5 +1,5 @@
1
1
  module ActiveDecorator
2
2
  module RSpec
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
@@ -12,7 +12,11 @@ module ActiveDecorator
12
12
  ApplicationController : ActionController::Base
13
13
  controller = Class.new(base_class).new
14
14
  controller.request = ActionController::TestRequest.new
15
- ActiveDecorator::ViewContext.current = controller.view_context
15
+ if ActiveDecorator::ViewContext.respond_to?(:current=)
16
+ ActiveDecorator::ViewContext.current = controller.view_context
17
+ else
18
+ ActiveDecorator::ViewContext.push controller.view_context
19
+ end
16
20
 
17
21
  self
18
22
  end
@@ -9,8 +9,8 @@ describe AuthorDecorator do
9
9
  its(:reverse_name) { should eq("oob") }
10
10
 
11
11
  its(:form) {
12
- should match %r|^<form accept-charset="UTF-8" action="/authors/#{author.id}" class="edit_author" id="edit_author_#{author.id}" method="post">|
13
- should match %r|<input id="author_name" name="author\[name\]" type="text" value="boo" />|
12
+ should match %r|^<form class=\"edit_author\" id=\"edit_author_#{author.id}\" action=\"/authors/#{author.id}\" accept-charset=\"UTF-8\" method=\"post\">|
13
+ should match %r|<input type=\"text\" value=\"boo\" name=\"author\[name\]\" id=\"author_name\" />|
14
14
  should match %r|</form>$|
15
15
  }
16
16
 
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
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - mizokami
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-02 00:00:00.000000000 Z
11
+ date: 2015-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -175,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
175
  version: '0'
176
176
  requirements: []
177
177
  rubyforge_project:
178
- rubygems_version: 2.2.2
178
+ rubygems_version: 2.4.5
179
179
  signing_key:
180
180
  specification_version: 4
181
181
  summary: ActiveDecorator::RSpec