rspec-cells 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +4 -0
- data/lib/rspec/cells.rb +1 -0
- data/lib/rspec/cells/example_group.rb +7 -11
- data/lib/rspec/cells/version.rb +1 -1
- data/rspec-cells.gemspec +3 -2
- data/spec/cells/cell_spec_spec.rb +0 -1
- metadata +23 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d553b20aa9bd6b0c7abaf128bab9a3470b36e984
|
4
|
+
data.tar.gz: be38f9acddd569c55145ea2cdc1156baa0d94e03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f45cadb315d27807c0909fe079fd1b9eed7b85f3805b31ef27930b182bf49d502c831f5979c0a84caaefe2cb2ccf1ea8d5ded7975cc2172acd053a9567003f65
|
7
|
+
data.tar.gz: 49476021f3e7758022ef44d64c12545a4231f9612720fba54b74dcbadecd0ef9baa7a6c550e7387ff22c2a4245c6a267ac832c41d32362ebdd6598894abc4ebe
|
data/CHANGES.md
CHANGED
data/lib/rspec/cells.rb
CHANGED
@@ -36,22 +36,18 @@ module RSpec
|
|
36
36
|
ActionController::Base.allow_forgery_protection = false
|
37
37
|
end
|
38
38
|
|
39
|
-
# add Example::controller and ::controller_class.
|
40
|
-
extend RSpec::Cells::ExampleGroup::
|
39
|
+
# add Example::controller and ::controller_class.
|
40
|
+
extend RSpec::Cells::ExampleGroup::Controller
|
41
|
+
let (:controller_class) { }
|
42
|
+
let (:controller) { controller_for(controller_class) }
|
41
43
|
end
|
42
44
|
|
43
45
|
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
@controller_class
|
48
|
-
end
|
49
|
-
|
50
|
-
def controller(name)
|
51
|
-
@controller_class = name
|
46
|
+
module Controller
|
47
|
+
def controller(name) # DSL for test, e.g. `controller SongsController`.
|
48
|
+
let (:controller_class) { name }
|
52
49
|
end
|
53
50
|
end
|
54
|
-
|
55
51
|
end
|
56
52
|
end
|
57
53
|
end
|
data/lib/rspec/cells/version.rb
CHANGED
data/rspec-cells.gemspec
CHANGED
@@ -17,7 +17,8 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.require_paths = ["lib"]
|
18
18
|
|
19
19
|
s.add_runtime_dependency 'rspec-rails', '~> 3.2'
|
20
|
-
s.add_runtime_dependency "cells", "~> 4.0.0.
|
20
|
+
s.add_runtime_dependency "cells", "~> 4.0.0.beta5"
|
21
21
|
|
22
|
-
|
22
|
+
|
23
|
+
s.add_development_dependency "capybara" # FIXME: please make test for Capybara run.
|
23
24
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-cells
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Sutterer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec-rails
|
@@ -30,14 +30,28 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 4.0.0.
|
33
|
+
version: 4.0.0.beta5
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 4.0.0.
|
40
|
+
version: 4.0.0.beta5
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: capybara
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
description: Use render_cell in your specs.
|
42
56
|
email:
|
43
57
|
- apotonick@gmail.com
|
@@ -91,4 +105,8 @@ rubygems_version: 2.2.2
|
|
91
105
|
signing_key:
|
92
106
|
specification_version: 4
|
93
107
|
summary: Spec your cells.
|
94
|
-
test_files:
|
108
|
+
test_files:
|
109
|
+
- spec/cells/caching_spec.rb
|
110
|
+
- spec/cells/cell_generator_spec.rb
|
111
|
+
- spec/cells/cell_spec_spec.rb
|
112
|
+
- spec/spec_helper.rb
|