rspec-steps 1.0.3 → 1.0.4

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: 822a5b6c83f2e379b1a224cf1ae96d64adb86855
4
- data.tar.gz: a76a48c57274dc299fa98e6bb14ebf9812bea493
3
+ metadata.gz: add3660a9a830b66c4ff9d3094b790f0f719e41a
4
+ data.tar.gz: 8f5c5394135f7c5e626079cfb0da8b3e12820231
5
5
  SHA512:
6
- metadata.gz: b008e3e9eaa5b307aa3ea80cc08777a08dbced69dc907be4feaea5d097eda4a6087a2a6d8788f9505a607f06a2a426eaa839807f0497bd7491c4bc4693e99f0e
7
- data.tar.gz: 4f2012a46c02c88a7b659a58083ee91c293ab340f214b55bf6ccb7b3a54f569e1982a15a9e28616c7d6e7d3cab61b36ec884198494a6b35f5a6cd460eaea3ea6
6
+ metadata.gz: 0ff81fda3e18dd00593d24204c02c733ee3a7fe669d887331649504b6157645e4b68ca1b40a9cda715645547b7c7d7030bb217836f1a9b221df810e42074d7fc
7
+ data.tar.gz: a36b54d4c630ae663d6db57e3b3a71641863c2b054de4b3955424279047dccc0553111f279adc96d3a2ca4cbbaed16347baec577880f7390c8479bbe88614a45
@@ -7,15 +7,16 @@ module RSpecStepwise
7
7
  @duration = @start = @load_time = nil
8
8
  end
9
9
 
10
- def notify(*args)
10
+ #def notify(*args)
11
11
  #noop
12
- end
12
+ #end
13
13
  end
14
14
 
15
15
  class WholeListExample < RSpec::Core::Example
16
- def initialize(example_group_class, descriptions, metadata)
17
- super
18
- @reporter = ApatheticReporter.new
16
+ def initialize(example_group_class, reporter, descriptions, metadata)
17
+ super(example_group_class, descriptions, metadata)
18
+ #@reporter = ApatheticReporter.new
19
+ @reporter = reporter
19
20
  build_example_block
20
21
  end
21
22
 
@@ -40,13 +41,15 @@ module RSpecStepwise
40
41
  end
41
42
  example.extend StepExample
42
43
  unless success
43
- example.metadata[:pending] = true
44
- exec_result = example.metadata[:execution_result]
45
- if exec_result.respond_to? :pending_message=
46
- exec_result.pending_message = "Previous step failed"
47
- else
48
- exec_result[:pending_message] = "Previous step failed"
49
- end
44
+ example.metadata[:skip] = "Previous step failed"
45
+ RSpec::Core::Pending.mark_pending!(example, example.skip)
46
+ # example.metadata[:pending] = true
47
+ # exec_result = example.metadata[:execution_result]
48
+ # if exec_result.respond_to? :pending_message=
49
+ # exec_result.pending_message = "Previous step failed"
50
+ # else
51
+ # exec_result[:pending_message] = "Previous step failed"
52
+ # end
50
53
  end
51
54
  succeeded = with_indelible_ivars do
52
55
  example.run(self, reporter)
@@ -216,7 +219,7 @@ module RSpecStepwise
216
219
  end
217
220
 
218
221
  def run_examples(reporter)
219
- whole_list_example = WholeListExample.new(self, "step list", {})
222
+ whole_list_example = WholeListExample.new(self, reporter, "step list", {})
220
223
 
221
224
  instance = new
222
225
  if respond_to? :before_context_ivars
@@ -45,6 +45,8 @@ describe RSpec::Core::ExampleGroup do
45
45
  group.run
46
46
  end
47
47
 
48
+ expect(group.examples.length).to eq(5)
49
+
48
50
  group.examples.each do |example|
49
51
  expect(example.metadata[:execution_result].status).to eq(:passed)
50
52
  end
@@ -128,7 +130,8 @@ describe RSpec::Core::ExampleGroup do
128
130
  group.run
129
131
  end
130
132
 
131
- expect(group.examples[1].metadata[:pending]).to eq(true)
133
+ expect(group.examples[0].metadata[:execution_result].status).to eq(:failed)
134
+ expect(group.examples[1].metadata[:execution_result].status).to eq(:pending)
132
135
  end
133
136
 
134
137
  it "should allow nested steps", :pending => "Not really" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-steps
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Judson Lester
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-12-05 00:00:00.000000000 Z
12
+ date: 2014-12-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: corundum
@@ -330,7 +330,7 @@ rdoc_options:
330
330
  - --main
331
331
  - doc/README
332
332
  - --title
333
- - rspec-steps-1.0.3 RDoc
333
+ - rspec-steps-1.0.4 RDoc
334
334
  require_paths:
335
335
  - lib/
336
336
  required_ruby_version: !ruby/object:Gem::Requirement