allure-rspec 0.7.0 → 0.7.1

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
2
  SHA1:
3
- metadata.gz: 2a95bfdbc3c67888d8549885986d84faea4dc4ea
4
- data.tar.gz: 6c1ed31afff186e89bb5a2b8f8189a3e621ca4b7
3
+ metadata.gz: 699434ccd2242a0beaf9a17431b6f45a8065f433
4
+ data.tar.gz: fd6bedaf1ffcb707bc57ecf868c18f36b722088d
5
5
  SHA512:
6
- metadata.gz: e72a1af9a1423a576708b2cd741740daef0607a3c2d89ae9c2143c1b03e544006279a49bd053a200d826c1ece59c68d88a75f926629ba1ef83a26aad028872f0
7
- data.tar.gz: 5f9eab034b615ac1951bff6a675e0a213b3d3ff36d26cf95b1ddeb05aeab3c6155babf6b4ea526e5604cb60eac057068e6057b1eaedefd203143b18fb8dcddd8
6
+ metadata.gz: a7448438affaeb1d627a322c4a3f1d6d0d07e0aa6ffa3e88891c64b1b948ec0d0ae8d72cbd135d7fff6325f6625002c545e2af3cbeb34390fad47421a53612d6
7
+ data.tar.gz: 83f857e16947936546c264bdef1ee125a9594cdc5498371ecc06ac81bfeb3abb980cbdd3ee444703c7861e6bdd997673ae4149faeb7aab56fd8654c4463e20a1
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- allure-rspec (0.6.9)
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.2.1)
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.0)
27
+ rspec-core (3.2.3)
28
28
  rspec-support (~> 3.2.0)
29
- rspec-expectations (3.2.0)
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.0)
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.1)
36
- systemu (2.6.4)
35
+ rspec-support (3.2.2)
36
+ systemu (2.6.5)
37
37
  uuid (2.3.7)
38
38
  macaddr (~> 1.0)
39
39
 
@@ -11,19 +11,21 @@ module AllureRSpec
11
11
  alias_method :old_hooks, :hooks
12
12
 
13
13
  def hooks
14
- @__hooks ||= OverridenHookCollections.new(self, RSpec::Core::FilterableItemRepository::UpdateOptimized)
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(*args)
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)
@@ -1,5 +1,5 @@
1
1
  module AllureRSpec # :nodoc:
2
2
  module Version # :nodoc:
3
- STRING = '0.7.0'
3
+ STRING = '0.7.1'
4
4
  end
5
5
  end
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'When I test allure rspec' do
4
+ before(:all) do
5
+ puts 'Before all in foo spec'
6
+ end
7
+
8
+ it 'should do something' do
9
+ puts 'In the test'
10
+ expect(true).not_to be_nil
11
+ end
12
+ end
@@ -4,6 +4,14 @@ require 'nokogiri'
4
4
 
5
5
  RSpec.configure do |c|
6
6
  c.include AllureRSpec::Adaptor
7
+
8
+ c.before(:suite) do
9
+ puts 'Before Suite Spec helper'
10
+ end
11
+
12
+ c.before(:all) do
13
+ puts 'Before all Spec helper'
14
+ end
7
15
  end
8
16
 
9
17
  AllureRSpec.configure do |c|
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.0
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-05-13 00:00:00.000000000 Z
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.0
117
+ summary: allure-rspec-0.7.1
117
118
  test_files: []
118
119
  has_rdoc: