rspec-cells 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: c95f2e0628ef02beab2e9f9c58a48acce13ab646
4
- data.tar.gz: 966250024a3c40d9a3b5fa7b0470edcd2058e440
2
+ SHA256:
3
+ metadata.gz: e9d21e34a6018a71faa0c445c2e220d0efa92151a22158b960586ec03b438af2
4
+ data.tar.gz: 4ea6915d0fe0a84b679c9b0f98e4a83e5bbc2c4ff22800b3819035f47bb2607e
5
5
  SHA512:
6
- metadata.gz: 94a7c9fbce4af8ec69ea1c3675a50baecc5d3798dcef1e9d060b97878c8e047bf0907450de48a73e0824a66bfe969beb4582e331ef28b99ac603f7f264f6319f
7
- data.tar.gz: d15e488b599b16cae99454966b96f518c5bd130c76277d25262d5bfe113496ec0aafb8d9b792972e88083ab82562c3c338309608fde96effd706e34eacd905a2
6
+ metadata.gz: f823017516539750611bb92916233e2412fe425b644146c27557d72ad78d1141fba0cc0f2fa4bd52e632600a74a6c4ca6c09bb26747993fd70586eeafe7a57a4
7
+ data.tar.gz: 2c1893323039c518b605c1cfb9e9ebfd711b514ad5f3319c35d66f7cf9a2cca25e52d5ef3b25085df2b7236639d5b6852f2ac8850c1d042b2d6148c7884521eb
@@ -1,12 +1,11 @@
1
+ language: ruby
2
+ cache: bundler
3
+ bundler_args: --without benchmarks tools
1
4
  rvm:
2
- - 1.9.3
3
- - 2.0.0
4
- - 2.1.5
5
- - 2.2.0
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
@@ -1,3 +1,8 @@
1
+ # 0.3.5
2
+
3
+ * Avoid global configuration change (#86)
4
+ * Support rspec-rails 4.x. This is required for Rails 6 (#88)
5
+
1
6
  # 0.3.4
2
7
 
3
8
  * Allow Cells 4.1.
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://trailblazerb.org/gems/cells/testing.html).
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
- ActionController::Base.allow_forgery_protection = false
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 (:controller_class) { }
42
- let (:controller) { controller_for(controller_class) }
52
+ let(:controller_class) {}
53
+ let(:controller) { controller_for(controller_class) }
43
54
  end
44
55
 
45
56
 
@@ -1,6 +1,6 @@
1
1
  module RSpec
2
2
  module Cells
3
- VERSION = "0.3.4"
3
+ VERSION = "0.3.5"
4
4
  end
5
5
  end
6
6
 
@@ -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', '~> 3.2'
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
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: 2016-05-09 00:00:00.000000000 Z
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: '3.2'
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: '3.2'
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.4.8
109
+ rubygems_version: 2.7.6.2
110
110
  signing_key:
111
111
  specification_version: 4
112
112
  summary: Spec your cells.