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 +4 -4
- data/README.md +1 -0
- data/lib/active_decorator/rspec/version.rb +1 -1
- data/lib/active_decorator/rspec.rb +5 -1
- data/spec/decorators/author_decorator_spec.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11702bcbf9f5f24e8b5af8264182ade9007607e9
|
4
|
+
data.tar.gz: d7410dea37d4a9a87ef95b2bbe71ad651726ce4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
@@ -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
|
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
|
13
|
-
should match %r|<input
|
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
|
+
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:
|
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.
|
178
|
+
rubygems_version: 2.4.5
|
179
179
|
signing_key:
|
180
180
|
specification_version: 4
|
181
181
|
summary: ActiveDecorator::RSpec
|