rspec-cells 0.3.4 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.travis.yml +7 -8
- data/CHANGES.md +5 -0
- data/README.md +1 -1
- data/lib/rspec/cells/example_group.rb +14 -3
- data/lib/rspec/cells/version.rb +1 -1
- data/rspec-cells.gemspec +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e9d21e34a6018a71faa0c445c2e220d0efa92151a22158b960586ec03b438af2
|
4
|
+
data.tar.gz: 4ea6915d0fe0a84b679c9b0f98e4a83e5bbc2c4ff22800b3819035f47bb2607e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f823017516539750611bb92916233e2412fe425b644146c27557d72ad78d1141fba0cc0f2fa4bd52e632600a74a6c4ca6c09bb26747993fd70586eeafe7a57a4
|
7
|
+
data.tar.gz: 2c1893323039c518b605c1cfb9e9ebfd711b514ad5f3319c35d66f7cf9a2cca25e52d5ef3b25085df2b7236639d5b6852f2ac8850c1d042b2d6148c7884521eb
|
data/.travis.yml
CHANGED
@@ -1,12 +1,11 @@
|
|
1
|
+
language: ruby
|
2
|
+
cache: bundler
|
3
|
+
bundler_args: --without benchmarks tools
|
1
4
|
rvm:
|
2
|
-
-
|
3
|
-
- 2.
|
4
|
-
- 2.
|
5
|
-
- 2.
|
6
|
-
- rbx-2
|
7
|
-
|
8
|
-
gemfile:
|
9
|
-
- gemfiles/rspec3.gemfile
|
5
|
+
- ruby-head
|
6
|
+
- 2.5
|
7
|
+
- 2.4
|
8
|
+
- 2.3
|
10
9
|
|
11
10
|
notifications:
|
12
11
|
irc: "irc.freenode.org#cells"
|
data/CHANGES.md
CHANGED
data/README.md
CHANGED
@@ -66,7 +66,7 @@ rake spec:cells
|
|
66
66
|
|
67
67
|
# More docs
|
68
68
|
|
69
|
-
All the docs about testing can be found on the [Trailblazer project page](http://
|
69
|
+
All the docs about testing can be found on the [Trailblazer project page](http://trailblazer.to/gems/cells/testing.html).
|
70
70
|
|
71
71
|
# Test cells with caching
|
72
72
|
|
@@ -33,13 +33,24 @@ module RSpec
|
|
33
33
|
|
34
34
|
before do # called before every it.
|
35
35
|
@routes = ::Rails.application.routes
|
36
|
-
|
36
|
+
end
|
37
|
+
|
38
|
+
around do |example|
|
39
|
+
begin
|
40
|
+
old_value = ActionController::Base.allow_forgery_protection
|
41
|
+
ActionController::Base.allow_forgery_protection = false
|
42
|
+
|
43
|
+
example.run
|
44
|
+
|
45
|
+
ensure
|
46
|
+
ActionController::Base.allow_forgery_protection = old_value
|
47
|
+
end
|
37
48
|
end
|
38
49
|
|
39
50
|
# add Example::controller and ::controller_class.
|
40
51
|
extend RSpec::Cells::ExampleGroup::Controller
|
41
|
-
let
|
42
|
-
let
|
52
|
+
let(:controller_class) {}
|
53
|
+
let(:controller) { controller_for(controller_class) }
|
43
54
|
end
|
44
55
|
|
45
56
|
|
data/lib/rspec/cells/version.rb
CHANGED
data/rspec-cells.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
17
17
|
s.require_paths = ["lib"]
|
18
18
|
|
19
|
-
s.add_runtime_dependency 'rspec-rails', '
|
19
|
+
s.add_runtime_dependency 'rspec-rails', '< 5.0'
|
20
20
|
s.add_runtime_dependency "cells", ">= 4.0.0", "< 6.0.0"
|
21
21
|
|
22
22
|
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
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.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Sutterer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec-rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "<"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '5.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "<"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '5.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: cells
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
106
|
version: '0'
|
107
107
|
requirements: []
|
108
108
|
rubyforge_project:
|
109
|
-
rubygems_version: 2.
|
109
|
+
rubygems_version: 2.7.6.2
|
110
110
|
signing_key:
|
111
111
|
specification_version: 4
|
112
112
|
summary: Spec your cells.
|