active_decorator-rspec 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/active_decorator-rspec.gemspec +1 -1
- data/lib/active_decorator/rspec/version.rb +1 -1
- data/lib/active_decorator/rspec.rb +6 -4
- metadata +16 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26b39f7ddaa881ee3acdcdc6f18dbc0fbe2b85b1
|
4
|
+
data.tar.gz: 845ca34bfc20901b861704698286b0ee30a3d1ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb082cdc61b2c044f3976837cc3a3533ebd179dc180cf269720f7831fd78d3c1690ee51b91aa289c476a6619923d61f3ccce05735d134aff15445f332f9bd658
|
7
|
+
data.tar.gz: 95d0e125d6f1cd512b195dc4261112400f82e7c4879d5c4dfc2a9ee6187d378a980840a9798a465f062cd1661a78b3b1dcd99fe62098abe91eef4f98ef3fa4a8
|
@@ -17,13 +17,13 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
|
20
|
+
spec.add_dependency "rspec", ">= 3.0"
|
20
21
|
spec.add_dependency "actionpack"
|
21
22
|
spec.add_dependency "active_decorator"
|
22
23
|
spec.add_dependency "activesupport"
|
23
24
|
spec.add_development_dependency "bundler", "~> 1.6"
|
24
25
|
spec.add_development_dependency "rails"
|
25
26
|
spec.add_development_dependency "rake"
|
26
|
-
spec.add_development_dependency "rspec"
|
27
27
|
spec.add_development_dependency "rspec-its"
|
28
28
|
spec.add_development_dependency "sqlite3"
|
29
29
|
end
|
@@ -5,13 +5,15 @@ require "active_decorator/rspec/version"
|
|
5
5
|
|
6
6
|
module ActiveDecorator
|
7
7
|
module RSpec
|
8
|
-
def self.enable(example
|
9
|
-
|
8
|
+
def self.enable(example)
|
9
|
+
example.extend self
|
10
|
+
|
11
|
+
base_class = defined?(ApplicationController) ? \
|
12
|
+
ApplicationController : ActionController::Base
|
13
|
+
controller = Class.new(base_class).new
|
10
14
|
controller.request = ActionController::TestRequest.new
|
11
15
|
ActiveDecorator::ViewContext.current = controller.view_context
|
12
16
|
|
13
|
-
example.extend self
|
14
|
-
|
15
17
|
self
|
16
18
|
end
|
17
19
|
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
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.4
|
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-
|
11
|
+
date: 2014-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rspec
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: actionpack
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,20 +108,6 @@ dependencies:
|
|
94
108
|
- - ">="
|
95
109
|
- !ruby/object:Gem::Version
|
96
110
|
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: rspec
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: rspec-its
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|