rspec_around_all 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a693b42fbe51e4a89617579b3cac0a91cc76ecb9
4
+ data.tar.gz: d5fbd8ac05928142c641d51d751dcf0d75e0fd03
5
+ SHA512:
6
+ metadata.gz: a1fe14121693ec22474d6611267f5def53d32d15e35a2d6a3aa030437ac3dc1f8ee8eb4d0aef698ad9e2c2a83cdb274b469384da1784fe84fb568bc15631f9dd
7
+ data.tar.gz: 872f33c2b828984ba02319fff575ce39d1d1549dfcfa7117485e462beb0372fd20e80e66dfbaf106fc8b84fbb3c88d375d0829d34088270ff5cab700531989b1
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![Build Status](https://secure.travis-ci.org/seanwalbran/rspec_around_all.png?branch=master)](http://travis-ci.org/seanwalbran/rspec_around_all)
2
+
1
3
  # RSpec Around All
2
4
 
3
5
  Provides around(:all) hooks for RSpec.
@@ -7,7 +9,7 @@ Provides around(:all) hooks for RSpec.
7
9
  In your Gemfile:
8
10
 
9
11
  ``` ruby
10
- gem 'rspec_around_all', git: 'git://gist.github.com/2005175.git'
12
+ gem 'rspec_around_all', require: false
11
13
  ```
12
14
 
13
15
  In a spec:
@@ -17,7 +17,7 @@ module RSpec
17
17
  end
18
18
 
19
19
  group.run(double.as_null_object)
20
- order.should eq([:before, :e1, :e2, :after])
20
+ expect(order).to eq([:before, :e1, :e2, :after])
21
21
  end
22
22
 
23
23
  it 'allows the yielded arg to be treated as a proc' do
@@ -38,7 +38,7 @@ module RSpec
38
38
  end
39
39
 
40
40
  group.run(double.as_null_object)
41
- group.order.should eq([:before, :e1, :e2, :after])
41
+ expect(group.order).to eq([:before, :e1, :e2, :after])
42
42
  end
43
43
 
44
44
  it 'can access metadata in the hook' do
@@ -52,7 +52,7 @@ module RSpec
52
52
  end
53
53
 
54
54
  group.run(double.as_null_object)
55
- foo_value.should eq(:bar)
55
+ expect(foo_value).to eq(:bar)
56
56
  end
57
57
 
58
58
  it 'allows around(:each) hooks to run as normal' do
@@ -69,7 +69,7 @@ module RSpec
69
69
  end
70
70
 
71
71
  group.run(double.as_null_object)
72
- order.should eq([:before, :e1, :after, :before, :e2, :after])
72
+ expect(order).to eq([:before, :e1, :after, :before, :e2, :after])
73
73
  end
74
74
 
75
75
  it 'allows around hooks with no scope argument to run as normal' do
@@ -86,7 +86,7 @@ module RSpec
86
86
  end
87
87
 
88
88
  group.run(double.as_null_object)
89
- order.should eq([:before, :e1, :after, :before, :e2, :after])
89
+ expect(order).to eq([:before, :e1, :after, :before, :e2, :after])
90
90
  end
91
91
  end
92
92
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec_around_all
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
5
- prerelease:
4
+ version: 0.2.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Myron Marston
@@ -10,58 +9,69 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2013-08-07 00:00:00.000000000 Z
12
+ date: 2014-06-10 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: rspec
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
- - - ~>
18
+ - - ">="
21
19
  - !ruby/object:Gem::Version
22
20
  version: '2.0'
23
21
  type: :runtime
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
- - - ~>
25
+ - - ">="
29
26
  - !ruby/object:Gem::Version
30
27
  version: '2.0'
28
+ - !ruby/object:Gem::Dependency
29
+ name: rake
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: '10.0'
35
+ type: :development
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '10.0'
31
42
  description:
32
43
  email: seanwalbran@gmail.com
33
44
  executables: []
34
45
  extensions: []
35
46
  extra_rdoc_files: []
36
47
  files:
37
- - lib/rspec_around_all.rb
38
48
  - LICENSE
39
49
  - README.md
50
+ - lib/rspec_around_all.rb
40
51
  - spec/rspec_around_all_spec.rb
41
52
  homepage: https://github.com/seanwalbran/rspec_around_all
42
53
  licenses:
43
54
  - MIT
55
+ metadata: {}
44
56
  post_install_message:
45
57
  rdoc_options: []
46
58
  require_paths:
47
59
  - lib
48
60
  required_ruby_version: !ruby/object:Gem::Requirement
49
- none: false
50
61
  requirements:
51
- - - ! '>='
62
+ - - ">="
52
63
  - !ruby/object:Gem::Version
53
64
  version: 1.9.2
54
65
  required_rubygems_version: !ruby/object:Gem::Requirement
55
- none: false
56
66
  requirements:
57
- - - ! '>='
67
+ - - ">="
58
68
  - !ruby/object:Gem::Version
59
69
  version: '0'
60
70
  requirements: []
61
71
  rubyforge_project:
62
- rubygems_version: 1.8.25
72
+ rubygems_version: 2.2.2
63
73
  signing_key:
64
- specification_version: 3
74
+ specification_version: 4
65
75
  summary: Provides around(:all) hook for RSpec
66
76
  test_files:
67
77
  - spec/rspec_around_all_spec.rb