turnip_formatter 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,7 +18,7 @@ module Turnip
18
18
 
19
19
  def push_scenario_metadata(scenario)
20
20
  steps = scenario.steps
21
- example.metadata[:turnip].tap do |turnip|
21
+ example.metadata[:turnip_formatter].tap do |turnip|
22
22
  steps.each do |step|
23
23
  turnip[:steps] << {
24
24
  name: step.description,
@@ -41,7 +41,7 @@ module Turnip
41
41
 
42
42
  before do
43
43
  example.metadata[:file_path] = feature_file
44
- example.metadata[:turnip] = { steps: [], tags: [] }
44
+ example.metadata[:turnip_formatter] = { steps: [], tags: [] }
45
45
 
46
46
  feature.backgrounds.each do |background|
47
47
  push_scenario_metadata(background)
@@ -18,7 +18,7 @@ module TurnipFormatter
18
18
  end
19
19
 
20
20
  def validation
21
- raise NotExistStepsInformationError unless example.metadata.member?(:turnip)
21
+ raise NotExistStepsInformationError unless example.metadata.member?(:turnip_formatter)
22
22
  raise NoFeatureFileError unless feature_file_path.end_with?('.feature')
23
23
  end
24
24
 
@@ -62,7 +62,7 @@ module TurnipFormatter
62
62
  end
63
63
 
64
64
  def tags
65
- example.metadata[:turnip][:tags]
65
+ example.metadata[:turnip_formatter][:tags]
66
66
  end
67
67
 
68
68
  def example
@@ -72,7 +72,7 @@ module TurnipFormatter
72
72
  private
73
73
 
74
74
  def descriptions
75
- example.metadata[:turnip][:steps]
75
+ example.metadata[:turnip_formatter][:steps]
76
76
  end
77
77
 
78
78
  def clean_backtrace
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
3
  module TurnipFormatter
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
@@ -23,7 +23,7 @@ end
23
23
  shared_context 'turnip_formatter standard scenario metadata' do
24
24
  let(:metadata) do
25
25
  {
26
- turnip: {
26
+ turnip_formatter: {
27
27
  steps: [ { name: 'Step 1', extra_args: [], keyword: 'When' } ],
28
28
  tags: []
29
29
  },
@@ -23,7 +23,7 @@ module TurnipFormatter::Scenario
23
23
  it 'should raise exception' do
24
24
  expect { scenario.validation }.to raise_error NotPassedScenarioError
25
25
  end
26
- end
26
+ end
27
27
  end
28
28
 
29
29
  context 'not exist feature file' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turnip_formatter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-22 00:00:00.000000000 Z
12
+ date: 2013-06-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: turnip