rspec-example_steps 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -19,7 +19,7 @@ module RSpec
|
|
|
19
19
|
|
|
20
20
|
if example.options[:with_steps]
|
|
21
21
|
full_message = "#{current_indentation}#{example.description}"
|
|
22
|
-
if respond_to?(:default_color)
|
|
22
|
+
if respond_to?(:default_color, true)
|
|
23
23
|
output.puts default_color(full_message)
|
|
24
24
|
else
|
|
25
25
|
output.puts white(full_message)
|
|
@@ -33,7 +33,7 @@ module RSpec
|
|
|
33
33
|
|
|
34
34
|
def example_step_passed(example_group, type, message, options)
|
|
35
35
|
full_message = "#{current_indentation} #{type.to_s.capitalize} #{message}"
|
|
36
|
-
if respond_to?(:success_color)
|
|
36
|
+
if respond_to?(:success_color, true)
|
|
37
37
|
output.puts success_color(full_message)
|
|
38
38
|
else
|
|
39
39
|
output.puts green(full_message)
|
|
@@ -49,7 +49,7 @@ module RSpec
|
|
|
49
49
|
full_message << " (PENDING)"
|
|
50
50
|
end
|
|
51
51
|
|
|
52
|
-
if respond_to?(:pending_color)
|
|
52
|
+
if respond_to?(:pending_color, true)
|
|
53
53
|
output.puts pending_color(full_message)
|
|
54
54
|
else
|
|
55
55
|
output.puts yellow(full_message)
|
|
@@ -58,7 +58,7 @@ module RSpec
|
|
|
58
58
|
|
|
59
59
|
def example_step_failed(example_group, type, message, options)
|
|
60
60
|
full_message = "#{current_indentation} #{type.to_s.capitalize} #{message} (FAILED)"
|
|
61
|
-
if respond_to?(:failure_color)
|
|
61
|
+
if respond_to?(:failure_color, true)
|
|
62
62
|
output.puts failure_color(full_message)
|
|
63
63
|
else
|
|
64
64
|
output.puts red(full_message)
|
data/lib/rspec/example_steps.rb
CHANGED
|
@@ -17,7 +17,7 @@ RSpec::Core::ExampleGroup.send :include, RSpec::ExampleSte
|
|
|
17
17
|
RSpec::Core::Reporter.send :include, RSpec::ExampleSteps::Reporter
|
|
18
18
|
RSpec::Core::World.send :include, RSpec::ExampleSteps::World
|
|
19
19
|
|
|
20
|
-
if RSpec::Core::ExampleGroup.singleton_class.respond_to?(:define_example_method)
|
|
20
|
+
if RSpec::Core::ExampleGroup.singleton_class.respond_to?(:define_example_method, true)
|
|
21
21
|
RSpec::Core::ExampleGroup.singleton_class.define_example_method :Steps, :with_steps => true
|
|
22
22
|
else
|
|
23
23
|
RSpec::Core::ExampleGroup.define_example_method :Steps, :with_steps => true
|
data/rspec-example_steps.gemspec
CHANGED
|
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |s|
|
|
5
5
|
s.name = "rspec-example_steps"
|
|
6
|
-
s.version = "0.2.
|
|
6
|
+
s.version = "0.2.4"
|
|
7
7
|
s.authors = ["Andriy Yanko"]
|
|
8
8
|
s.email = ["andriy.yanko@gmail.com"]
|
|
9
9
|
s.homepage = "https://github.com/railsware/rspec-example_steps"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rspec-example_steps
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.4
|
|
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-07-
|
|
12
|
+
date: 2013-07-18 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rspec-core
|
|
@@ -70,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
70
70
|
version: '0'
|
|
71
71
|
requirements: []
|
|
72
72
|
rubyforge_project: rspec_example_steps
|
|
73
|
-
rubygems_version: 1.8.
|
|
73
|
+
rubygems_version: 1.8.23
|
|
74
74
|
signing_key:
|
|
75
75
|
specification_version: 3
|
|
76
76
|
summary: Given/When/Then steps for RSpec examples
|