allure-rspec 0.7.0 → 0.7.1
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/Gemfile.lock +7 -7
- data/lib/allure-rspec/hooks.rb +6 -4
- data/lib/allure-rspec/version.rb +1 -1
- data/spec/hooks_spec.rb +12 -0
- data/spec/spec_helper.rb +8 -0
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 699434ccd2242a0beaf9a17431b6f45a8065f433
|
|
4
|
+
data.tar.gz: fd6bedaf1ffcb707bc57ecf868c18f36b722088d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a7448438affaeb1d627a322c4a3f1d6d0d07e0aa6ffa3e88891c64b1b948ec0d0ae8d72cbd135d7fff6325f6625002c545e2af3cbeb34390fad47421a53612d6
|
|
7
|
+
data.tar.gz: 83f857e16947936546c264bdef1ee125a9594cdc5498371ecc06ac81bfeb3abb980cbdd3ee444703c7861e6bdd997673ae4149faeb7aab56fd8654c4463e20a1
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
allure-rspec (0.
|
|
4
|
+
allure-rspec (0.7.1)
|
|
5
5
|
allure-ruby-adaptor-api (= 0.6.6)
|
|
6
6
|
rspec (~> 3.2)
|
|
7
7
|
|
|
@@ -15,7 +15,7 @@ GEM
|
|
|
15
15
|
diff-lcs (1.2.5)
|
|
16
16
|
macaddr (1.7.1)
|
|
17
17
|
systemu (~> 2.6.2)
|
|
18
|
-
mimemagic (0.
|
|
18
|
+
mimemagic (0.3.0)
|
|
19
19
|
mini_portile (0.6.2)
|
|
20
20
|
nokogiri (1.6.6.2)
|
|
21
21
|
mini_portile (~> 0.6.0)
|
|
@@ -24,16 +24,16 @@ GEM
|
|
|
24
24
|
rspec-core (~> 3.2.0)
|
|
25
25
|
rspec-expectations (~> 3.2.0)
|
|
26
26
|
rspec-mocks (~> 3.2.0)
|
|
27
|
-
rspec-core (3.2.
|
|
27
|
+
rspec-core (3.2.3)
|
|
28
28
|
rspec-support (~> 3.2.0)
|
|
29
|
-
rspec-expectations (3.2.
|
|
29
|
+
rspec-expectations (3.2.1)
|
|
30
30
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
31
31
|
rspec-support (~> 3.2.0)
|
|
32
|
-
rspec-mocks (3.2.
|
|
32
|
+
rspec-mocks (3.2.1)
|
|
33
33
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
34
34
|
rspec-support (~> 3.2.0)
|
|
35
|
-
rspec-support (3.2.
|
|
36
|
-
systemu (2.6.
|
|
35
|
+
rspec-support (3.2.2)
|
|
36
|
+
systemu (2.6.5)
|
|
37
37
|
uuid (2.3.7)
|
|
38
38
|
macaddr (~> 1.0)
|
|
39
39
|
|
data/lib/allure-rspec/hooks.rb
CHANGED
|
@@ -11,19 +11,21 @@ module AllureRSpec
|
|
|
11
11
|
alias_method :old_hooks, :hooks
|
|
12
12
|
|
|
13
13
|
def hooks
|
|
14
|
-
@__hooks ||= OverridenHookCollections.new(
|
|
14
|
+
@__hooks ||= OverridenHookCollections.new(old_hooks)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
private
|
|
18
18
|
|
|
19
19
|
class OverridenHookCollections < RSpec::Core::Hooks::HookCollections
|
|
20
|
-
def initialize(
|
|
21
|
-
super
|
|
20
|
+
def initialize(original)
|
|
21
|
+
super(original.instance_eval("@owner"), original.instance_eval("@filterable_item_repo_class"))
|
|
22
|
+
[:@before_example_hooks, :@after_example_hooks, :@before_context_hooks, :@after_context_hooks, :@around_example_hooks].each { |var|
|
|
23
|
+
instance_variable_set(var, original.instance_eval("#{var}"))
|
|
24
|
+
}
|
|
22
25
|
@before_step_hooks = nil
|
|
23
26
|
@after_step_hooks = nil
|
|
24
27
|
end
|
|
25
28
|
|
|
26
|
-
|
|
27
29
|
def run(position, scope, example_or_group)
|
|
28
30
|
if scope == :step
|
|
29
31
|
run_owned_hooks_for(position, scope, example_or_group)
|
data/lib/allure-rspec/version.rb
CHANGED
data/spec/hooks_spec.rb
ADDED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: allure-rspec
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ilya Sadykov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-06-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|
|
@@ -87,6 +87,7 @@ files:
|
|
|
87
87
|
- logo.png
|
|
88
88
|
- spec/another_spec.rb
|
|
89
89
|
- spec/extend_steps_spec.rb
|
|
90
|
+
- spec/hooks_spec.rb
|
|
90
91
|
- spec/nometavalue_spec.rb
|
|
91
92
|
- spec/shared_example_spec.rb
|
|
92
93
|
- spec/spec_helper.rb
|
|
@@ -113,6 +114,6 @@ rubyforge_project:
|
|
|
113
114
|
rubygems_version: 2.0.3
|
|
114
115
|
signing_key:
|
|
115
116
|
specification_version: 4
|
|
116
|
-
summary: allure-rspec-0.7.
|
|
117
|
+
summary: allure-rspec-0.7.1
|
|
117
118
|
test_files: []
|
|
118
119
|
has_rdoc:
|