rspec-do_action 0.0.3 → 0.0.4
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 +4 -4
- data/.gitignore +2 -0
- data/.travis.yml +1 -1
- data/Gemfile +1 -0
- data/gemfiles/{rspec3.gemfile → rspec2.gemfile} +1 -1
- data/lib/rspec-do_action.rb +10 -4
- data/lib/rspec-do_action/version.rb +1 -1
- data/rspec-do_action.gemspec +1 -0
- data/spec/spec_helper.rb +2 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cdd88582eefbbda5380d591287cf680e04f7aef4
|
4
|
+
data.tar.gz: 2be1cbd7f7ccfe6ddf12ec7c5d79ad43fd5bc185
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bc561ed9b20ec45d35e678361c92a7acd84738701803c6537260a35879a9e14938484c7adf35802925199adffda3afae673ebee4c7dec5e159319966491d540
|
7
|
+
data.tar.gz: 3cb6f3204fa1e2b65665f9a2a16b6aed18b954b8d8fb53cc185294c4635c712dbfd0da4345a21eabb9e10123f703bd51a7abd125393ca7c5ca8d72105d1de0fe
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/lib/rspec-do_action.rb
CHANGED
@@ -48,12 +48,18 @@ module Rspec
|
|
48
48
|
end
|
49
49
|
|
50
50
|
class RSpec::Core::Example
|
51
|
-
def
|
52
|
-
|
51
|
+
def run_before_example_with_action
|
52
|
+
run_before_example_without_action
|
53
53
|
example_group_instance.send(:auto_do_action_once)
|
54
54
|
end
|
55
|
-
|
56
|
-
|
55
|
+
|
56
|
+
if private_method_defined?(:run_before_example)
|
57
|
+
alias_method :run_before_example_without_action, :run_before_example
|
58
|
+
alias_method :run_before_example, :run_before_example_with_action
|
59
|
+
else
|
60
|
+
alias_method :run_before_example_without_action, :run_before_each
|
61
|
+
alias_method :run_before_each, :run_before_example_with_action
|
62
|
+
end
|
57
63
|
end
|
58
64
|
|
59
65
|
RSpec.configure do |config|
|
data/rspec-do_action.gemspec
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-do_action
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sunteya
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -94,7 +94,7 @@ files:
|
|
94
94
|
- LICENSE.txt
|
95
95
|
- README.md
|
96
96
|
- Rakefile
|
97
|
-
- gemfiles/
|
97
|
+
- gemfiles/rspec2.gemfile
|
98
98
|
- lib/rspec-do_action.rb
|
99
99
|
- lib/rspec-do_action/version.rb
|
100
100
|
- rspec-do_action.gemspec
|
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
121
|
version: '0'
|
122
122
|
requirements: []
|
123
123
|
rubyforge_project:
|
124
|
-
rubygems_version: 2.2.
|
124
|
+
rubygems_version: 2.2.2
|
125
125
|
signing_key:
|
126
126
|
specification_version: 4
|
127
127
|
summary: add 'acton' and some useful methods for rspec one-liner syntax.
|