turnip 1.2.3 → 1.2.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: 55812553e9b4c345d85bd1d9d0561c1480306486
4
- data.tar.gz: 3ffd467efff8bdc43ed27623b46370dd53c665e6
3
+ metadata.gz: 45866c1a494dceaaf4f1b816e6348a27adfa5943
4
+ data.tar.gz: d8a4f822013aea2863a8c9ca5ca6ef26beae1833
5
5
  SHA512:
6
- metadata.gz: 1d28c1998683657ea2c3b110e53edcb75adff78a47fc2210dcfae622c6cb60fcf54292b5d95ae6a5ce8c345cf2f5502d952a5e474a9c4957033f0a3d83ab653c
7
- data.tar.gz: 8bed3537732a35c45796fc63f6a6725d397045f23bfb5b6b12af73c9650a4447c55404d5ebce6bb7c6f9a9ceaed716886c60af60988c1044138b20f8bbf4e671
6
+ metadata.gz: f74269b505fee7497407ea369678ca03413bd13282e29d8e6d3487596e69d5e5e623bfa981b0cbb4511ec1cf36e06f332da82bfb302c98d89aa2ba143d89e3b2
7
+ data.tar.gz: 2499f65be4a50939b1ad584c658481d6a77899386774b035c7e1f1dce5fc0cda26f0867d7bcb7efc0b57e75c079ac9bea8f45dcf259cf862a7b5ead12da41d51
@@ -41,7 +41,9 @@ module Turnip
41
41
 
42
42
  def run_step(feature_file, step)
43
43
  begin
44
- step(step)
44
+ instance_eval <<-EOS, feature_file, step.line
45
+ step(step)
46
+ EOS
45
47
  rescue Turnip::Pending => e
46
48
  # This is kind of a hack, but it will make RSpec throw way nicer exceptions
47
49
  example = Turnip::RSpec.fetch_current_example(self)
@@ -49,7 +51,7 @@ module Turnip
49
51
  example.metadata[:location] = "#{example.metadata[:file_path]}:#{step.line}"
50
52
 
51
53
  if ::RSpec.configuration.raise_error_for_unimplemented_steps
52
- e.backtrace.unshift "#{feature_file}:#{step.line}:in `#{step.description}'"
54
+ e.backtrace.push "#{feature_file}:#{step.line}:in `#{step.description}'"
53
55
  raise
54
56
  end
55
57
 
@@ -59,7 +61,7 @@ module Turnip
59
61
  pending("No such step: '#{e}'")
60
62
  end
61
63
  rescue StandardError, ::RSpec::Expectations::ExpectationNotMetError => e
62
- e.backtrace.unshift "#{feature_file}:#{step.line}:in `#{step.description}'"
64
+ e.backtrace.push "#{feature_file}:#{step.line}:in `#{step.description}'"
63
65
  raise e
64
66
  end
65
67
  end
@@ -108,6 +110,6 @@ end
108
110
  ::RSpec.configure do |config|
109
111
  config.include Turnip::RSpec::Execute, turnip: true
110
112
  config.include Turnip::Steps, turnip: true
111
- config.pattern << ",**/*.feature"
113
+ config.pattern += ',**/*.feature'
112
114
  config.add_setting :raise_error_for_unimplemented_steps, :default => false
113
115
  end
@@ -1,3 +1,3 @@
1
1
  module Turnip
2
- VERSION = '1.2.3'
2
+ VERSION = '1.2.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turnip
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Nicklas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-10 00:00:00.000000000 Z
11
+ date: 2014-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec