rao-view_helper 0.0.19.pre → 0.0.20.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rao/view_helper/spec_helper.rb +4 -3
- metadata +30 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0bcfa5a7cbe0482bdd0b4f90abc91612cf273a2dbbafcf5eab3fceb22f2edc0
|
4
|
+
data.tar.gz: c8f54d818166025cadfa57f52a46976b9124dffa79475840abe39e16eb9b85ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04b3249f937e8f21dc17126917749f8adea0bed50cd43f9c71095e2d080913ffa07144dc809fe2dfa73c5b7e62a4cb84b28a20a92cfee8c323a561755978ce56
|
7
|
+
data.tar.gz: d13e4f9e822d75e90656cf7519552c621bf9af91a7da79baa1071aea7a783f5ffc0d087c8197d1ad45e62747c682553b6748042a14bac1783757b39058202bff
|
@@ -46,13 +46,14 @@ module Rao
|
|
46
46
|
mod.let(:default_url_options) { { host: 'localhost:3000' } }
|
47
47
|
mod.let(:rendered) {
|
48
48
|
if respond_to?(:options)
|
49
|
-
|
49
|
+
subject.send(method_name, options)
|
50
50
|
elsif respond_to?(:args)
|
51
|
-
|
51
|
+
subject.send(method_name, *args)
|
52
52
|
else
|
53
|
-
|
53
|
+
subject.send(method_name)
|
54
54
|
end
|
55
55
|
}
|
56
|
+
mod.let(:html) { Capybara::Node::Simple.new(rendered) }
|
56
57
|
|
57
58
|
mod.before(:each) { view.class.send(:define_method, :main_app, -> { Rails.application.class.routes.url_helpers }) }
|
58
59
|
mod.around(:each) do |example|
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rao-view_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.20.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Vasquez Angel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-04-
|
11
|
+
date: 2019-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 4.2.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 4.2.0
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: rao
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -24,6 +38,20 @@ dependencies:
|
|
24
38
|
- - ">="
|
25
39
|
- !ruby/object:Gem::Version
|
26
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: sqlite3
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 1.3.6
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.3.6
|
27
55
|
- !ruby/object:Gem::Dependency
|
28
56
|
name: rspec-rails
|
29
57
|
requirement: !ruby/object:Gem::Requirement
|