rspec-cells 0.3.1 → 0.3.2
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/example_group.rb +3 -3
- data/lib/rspec/cells/version.rb +1 -1
- metadata +2 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1632cd4d7920d1673c4205ac06a0c42984936dd6
|
4
|
+
data.tar.gz: 2e4d1ff66a84a43bf86a3ab907e761816f0d839e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0f03c8abea68185039f8c31d7c7a925b87f734dd635c553e09973f036dcea2700d70c411f225a68cd18a5182a69522ee26c3ac5662c8fcea7a2d4aa88b804c2
|
7
|
+
data.tar.gz: 1bc38912b08475adb5e67cdf052ae1d6d9c7671cac402b03b29a3429c286cd50c50364f5b10c6e860b6529717fbe456e750c6b19140ed5f1ecfb4eff925b1ff8
|
data/CHANGES.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
# 0.3.2
|
2
|
+
|
3
|
+
* Bugfix: In 0.3.1, I included cells specific `#controller` code into every Rspec example. Thanks to @psynix for spotting this within minutes.
|
4
|
+
|
1
5
|
# 0.3.1
|
2
6
|
|
3
7
|
* You can now use `::controller` in your examples to set a controller class, in case your cell requires a controller. This also fixes `#controller` in the example which always returned nil before.
|
@@ -35,6 +35,9 @@ module RSpec
|
|
35
35
|
@routes = ::Rails.application.routes
|
36
36
|
ActionController::Base.allow_forgery_protection = false
|
37
37
|
end
|
38
|
+
|
39
|
+
# add Example::controller and ::controller_class. for some reasons, this doesn't get imported from Cell::Testing.
|
40
|
+
extend RSpec::Cells::ExampleGroup::ControllerClass
|
38
41
|
end
|
39
42
|
|
40
43
|
|
@@ -58,7 +61,4 @@ RSpec.configure do |c|
|
|
58
61
|
c.include RSpec::Cells::ExampleGroup, :type => :cell
|
59
62
|
|
60
63
|
Cell::Testing.capybara = true if Object.const_defined?(:"Capybara")
|
61
|
-
|
62
|
-
# add Example::controller and ::controller_class. for some reasons, this doesn't get imported from Cell::Testing.
|
63
|
-
c.extend RSpec::Cells::ExampleGroup::ControllerClass
|
64
64
|
end
|
data/lib/rspec/cells/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Sutterer
|
@@ -91,8 +91,4 @@ rubygems_version: 2.2.2
|
|
91
91
|
signing_key:
|
92
92
|
specification_version: 4
|
93
93
|
summary: Spec your cells.
|
94
|
-
test_files:
|
95
|
-
- spec/cells/caching_spec.rb
|
96
|
-
- spec/cells/cell_generator_spec.rb
|
97
|
-
- spec/cells/cell_spec_spec.rb
|
98
|
-
- spec/spec_helper.rb
|
94
|
+
test_files: []
|