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 +4 -4
- data/lib/turnip/rspec.rb +6 -4
- data/lib/turnip/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45866c1a494dceaaf4f1b816e6348a27adfa5943
|
4
|
+
data.tar.gz: d8a4f822013aea2863a8c9ca5ca6ef26beae1833
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f74269b505fee7497407ea369678ca03413bd13282e29d8e6d3487596e69d5e5e623bfa981b0cbb4511ec1cf36e06f332da82bfb302c98d89aa2ba143d89e3b2
|
7
|
+
data.tar.gz: 2499f65be4a50939b1ad584c658481d6a77899386774b035c7e1f1dce5fc0cda26f0867d7bcb7efc0b57e75c079ac9bea8f45dcf259cf862a7b5ead12da41d51
|
data/lib/turnip/rspec.rb
CHANGED
@@ -41,7 +41,9 @@ module Turnip
|
|
41
41
|
|
42
42
|
def run_step(feature_file, step)
|
43
43
|
begin
|
44
|
-
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.
|
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.
|
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
|
113
|
+
config.pattern += ',**/*.feature'
|
112
114
|
config.add_setting :raise_error_for_unimplemented_steps, :default => false
|
113
115
|
end
|
data/lib/turnip/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|