allure-rspec 0.3.3 → 0.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b29eacbcd07d186e23f1cc2f3e1e110db9833c3b
4
- data.tar.gz: 07797ab8e11f37ec34969f39a44ecd4953506581
3
+ metadata.gz: 94fdce22859d8df7204968151db9efb0cade07aa
4
+ data.tar.gz: cd36d1f23992e382b80e403409c6c0302082d5df
5
5
  SHA512:
6
- metadata.gz: 7c3d8c8cb615f63d58ca230e3f53e35fd9616fc08a17ea201f1c6ee1dab2daa3cb272ed001f3fb5629386cbf2437e7021a7acd43c875db17212a2ca340b66b7e
7
- data.tar.gz: 4d4b0206cf6e06256b400e8f57d56c22a2adad0fc0fdccfc31a9249a31ab048566f4f1e65f6d5d8024de237a1cd2f8b438e4fb98682b1f098a3bae0faf889c3f
6
+ metadata.gz: 3880801f35eee981a6b783956b57543b365409b2638f508cac7f1fabb73ab699d88d9c026bde1f59a237c3e2a971d594a8e7b89e59f7146c555be1c7591f972c
7
+ data.tar.gz: c9c303a719d88f107c074a35445cfdac20a1ccca46dc1de498f8bb816764a2ed50bab6a1f516d57d5504b7a34503bafec7edf34e9b70d55d2fd96830a8ba9f08
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- allure-rspec (0.3.2)
4
+ allure-rspec (0.3.4)
5
5
  mimemagic
6
6
  nokogiri (~> 1.6.0)
7
7
  rspec (~> 2.14.0)
@@ -2,7 +2,9 @@ module AllureRSpec
2
2
  module Adaptor
3
3
  def self.included(base)
4
4
  base.send :include, AllureRSpec::DSL
5
- RSpec.configuration.add_formatter(AllureRSpec::Formatter)
5
+ if RSpec.configuration.formatters.find_all {|f| f.is_a?(AllureRSpec::Formatter)}.empty?
6
+ RSpec.configuration.add_formatter(AllureRSpec::Formatter)
7
+ end
6
8
  end
7
9
  end
8
10
  end
@@ -52,7 +52,7 @@ module AllureRSpec
52
52
  self.suites[suite][:tests][test][:status] = result[:status]
53
53
  if (result[:status].to_sym != :passed)
54
54
  self.suites[suite][:tests][test][:failure] = {
55
- :stacktrace => escape((result[:caller] || []).map { |s| s.to_s }.join("\r\n")),
55
+ :stacktrace => escape(((result[:exception] && result[:exception].backtrace) || []).map { |s| s.to_s }.join("\r\n")),
56
56
  :message => escape(result[:exception].to_s),
57
57
  }
58
58
  end
@@ -10,7 +10,10 @@ module AllureRSpec
10
10
  AllureRSpec::Builder.stop_test(
11
11
  example.metadata[:example_group][:description_args].first,
12
12
  example.metadata[:description],
13
- example.metadata[:execution_result].merge(:caller => example.metadata[:caller])
13
+ example.metadata[:execution_result].merge(
14
+ :caller => example.metadata[:caller],
15
+ :exception => example.metadata[:execution_result][:exception]
16
+ )
14
17
  )
15
18
  super
16
19
  end
@@ -1,5 +1,5 @@
1
1
  module AllureRSpec # :nodoc:
2
2
  module Version # :nodoc:
3
- STRING = '0.3.3'
3
+ STRING = '0.3.4'
4
4
  end
5
5
  end
@@ -0,0 +1,13 @@
1
+ require 'spec_helper'
2
+ require 'tempfile'
3
+
4
+ describe "Some another spec" do
5
+
6
+ it "10 cannot be greater than 19" do
7
+ 10.should > 19
8
+ end
9
+
10
+ it "4 must not be equal to 5" do
11
+ 5.should == 4
12
+ end
13
+ end
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.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilya Sadykov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-18 00:00:00.000000000 Z
11
+ date: 2014-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -114,6 +114,7 @@ files:
114
114
  - lib/allure-rspec/formatter.rb
115
115
  - lib/allure-rspec/version.rb
116
116
  - logo.png
117
+ - spec/another_spec.rb
117
118
  - spec/extend_steps_spec.rb
118
119
  - spec/spec_helper.rb
119
120
  homepage: http://allure.qatools.ru
@@ -139,5 +140,5 @@ rubyforge_project:
139
140
  rubygems_version: 2.0.3
140
141
  signing_key:
141
142
  specification_version: 4
142
- summary: allure-rspec-0.3.3
143
+ summary: allure-rspec-0.3.4
143
144
  test_files: []