allure-rspec 0.6.9 → 0.7.0

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: 32a710da1f1bf8cf4be4260c74b752e765817dbb
4
- data.tar.gz: b827a5863b6e51184152a8b6296f6053c60f2cc2
3
+ metadata.gz: 2a95bfdbc3c67888d8549885986d84faea4dc4ea
4
+ data.tar.gz: 6c1ed31afff186e89bb5a2b8f8189a3e621ca4b7
5
5
  SHA512:
6
- metadata.gz: 3e7ec5812c7c6dcaacbe46b487c20961812156cf00cedd23033cf1b674107ff4b91c228284504021200b90a88851216fc4ee43f2fb3f06e6b680a7968fdb816e
7
- data.tar.gz: 9d274c2a559284d5c381616ba06a37d5e3be0270376ec97d6e91f208d47fb0e9819ebc10b46b8c5f224b542e6091579e6ee30ddf00bcf490197d89a42a8107ae
6
+ metadata.gz: e72a1af9a1423a576708b2cd741740daef0607a3c2d89ae9c2143c1b03e544006279a49bd053a200d826c1ece59c68d88a75f926629ba1ef83a26aad028872f0
7
+ data.tar.gz: 5f9eab034b615ac1951bff6a675e0a213b3d3ff36d26cf95b1ddeb05aeab3c6155babf6b4ea526e5604cb60eac057068e6057b1eaedefd203143b18fb8dcddd8
data/README.md CHANGED
@@ -13,7 +13,8 @@ See the [releases](https://github.com/allure-framework/allure-rspec/releases) ta
13
13
 
14
14
  Add the dependency to your Gemfile. Choose the version carefully:
15
15
  * 0.5.x - for RSpec2.
16
- * 0.6.x - for RSpec3.
16
+ * <= 0.6.7 - for RSpec < 3.2.
17
+ * >= 0.6.9 - for RSpec >= 3.2.
17
18
 
18
19
  ```ruby
19
20
  gem 'allure-rspec'
@@ -34,7 +35,7 @@ within your current directory.
34
35
 
35
36
  ```ruby
36
37
  AllureRSpec.configure do |c|
37
- c.output_dir = "/whatever/you/like" # default: allure/data
38
+ c.output_dir = "/whatever/you/like" # default: gen/allure-results
38
39
  c.clean_dir = false # clean the output directory first? (default: true)
39
40
  end
40
41
  ```
@@ -53,16 +53,16 @@ module AllureRSpec
53
53
  private
54
54
 
55
55
  def description(data, attr = :full_description)
56
- ((data.respond_to?(attr)) ?
56
+ ((((data.respond_to?(attr)) ?
57
57
  data.send(attr) : data.metadata[attr]) ||
58
- description(data, :description)
58
+ description(data, :description)) || '').strip
59
59
  end
60
60
 
61
61
  def stop_test(example, opts = {})
62
62
  res = example.execution_result
63
63
  AllureRubyAdaptorApi::Builder.stop_test(
64
64
  description(example.example_group).to_s,
65
- description(example).to_s,
65
+ (example.metadata[:description_args].size== 0) ? description(example.example_group) : description(example).to_s,
66
66
  {
67
67
  :status => res.status,
68
68
  :finished_at => res.finished_at,
@@ -1,5 +1,5 @@
1
1
  module AllureRSpec # :nodoc:
2
2
  module Version # :nodoc:
3
- STRING = '0.6.9'
3
+ STRING = '0.7.0'
4
4
  end
5
5
  end
@@ -47,7 +47,7 @@ describe AllureRSpec, :feature => "Basics" do
47
47
  end
48
48
 
49
49
  e.step "step3" do
50
- expect(0).to be eql(1)
50
+ expect(0).to eq(1)
51
51
  end
52
52
  end
53
53
 
@@ -73,4 +73,14 @@ describe AllureRSpec, :feature => "Basics" do
73
73
 
74
74
  it "is a pending example"
75
75
 
76
+ context "some context" do
77
+ it do |e|
78
+ expect("aa").to eq("aa")
79
+ end
80
+
81
+ it do |e|
82
+ expect(5).to eq(6)
83
+ end
84
+ end
85
+
76
86
  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.6.9
4
+ version: 0.7.0
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-02-12 00:00:00.000000000 Z
11
+ date: 2015-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -113,6 +113,6 @@ rubyforge_project:
113
113
  rubygems_version: 2.0.3
114
114
  signing_key:
115
115
  specification_version: 4
116
- summary: allure-rspec-0.6.9
116
+ summary: allure-rspec-0.7.0
117
117
  test_files: []
118
118
  has_rdoc: