rspec-example_steps 3.1.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/lib/rspec/example_steps.rb +0 -3
- data/lib/rspec/example_steps/example_group.rb +0 -8
- data/rspec-example_steps.gemspec +1 -1
- metadata +1 -2
- data/lib/rspec/example_steps/world.rb +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40d89f80fb35aef9cfb8ce1d297837dd5f2e098510a46755f44d45319deba587
|
4
|
+
data.tar.gz: f2c855602e8d63359ae33d858dd46dd95b0141a0084e3ab4914dc75d30092ab3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bed8ec04b2ef510309947ff90d237f155f11689a78c49cdaa4f5bee4501e4e1db1409b6c550260cca62c0f4dccfcd3b52ce07e4c863ed7f9ab18f430e068d154
|
7
|
+
data.tar.gz: a89bc4a8f02b55613a19a7821f6dabf8ed1d85209f6c2dea239add358a7bb50da357218e6c649ab69c8de2155ce4f8148bd0300e8d2debaff01b2bc3a68fa1c7
|
data/CHANGELOG.md
CHANGED
data/lib/rspec/example_steps.rb
CHANGED
@@ -4,18 +4,15 @@ require 'rspec/core/formatters/console_codes'
|
|
4
4
|
require 'rspec/core/formatters/documentation_formatter'
|
5
5
|
require 'rspec/core/example_group'
|
6
6
|
require 'rspec/core/reporter'
|
7
|
-
require 'rspec/core/world'
|
8
7
|
|
9
8
|
require 'rspec/example_steps/documentation_formatter'
|
10
9
|
require 'rspec/example_steps/example_group'
|
11
10
|
require 'rspec/example_steps/notification'
|
12
11
|
require 'rspec/example_steps/reporter'
|
13
|
-
require 'rspec/example_steps/world'
|
14
12
|
|
15
13
|
RSpec::Core::Formatters::DocumentationFormatter.send :include, RSpec::ExampleSteps::DocumentationFormatter
|
16
14
|
RSpec::Core::ExampleGroup.send :include, RSpec::ExampleSteps::ExampleGroup
|
17
15
|
RSpec::Core::Reporter.send :include, RSpec::ExampleSteps::Reporter
|
18
|
-
RSpec::Core::World.send :include, RSpec::ExampleSteps::World
|
19
16
|
|
20
17
|
RSpec::Core::ExampleGroup.define_example_method :Steps, with_steps: true
|
21
18
|
|
@@ -1,13 +1,6 @@
|
|
1
1
|
module RSpec
|
2
2
|
module ExampleSteps
|
3
3
|
module ExampleGroup
|
4
|
-
def include_steps(*args)
|
5
|
-
name = args.shift
|
6
|
-
shared_block = RSpec.world.shared_example_steps[name]
|
7
|
-
shared_block or raise ArgumentError, "Could not find shared steps #{name.inspect}"
|
8
|
-
instance_exec(*args, &shared_block)
|
9
|
-
end
|
10
|
-
|
11
4
|
def Given(message, options = {}, &block)
|
12
5
|
RSpec.world.reporter.process_example_step(self, :given, message, options, &block)
|
13
6
|
end
|
@@ -27,7 +20,6 @@ module RSpec
|
|
27
20
|
def But(message, options = {}, &block)
|
28
21
|
RSpec.world.reporter.process_example_step(self, :but, message, options, &block)
|
29
22
|
end
|
30
|
-
|
31
23
|
end
|
32
24
|
end
|
33
25
|
end
|
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 = '3.1.
|
6
|
+
s.version = '3.1.1'
|
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: 3.1.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andriy Yanko
|
@@ -42,7 +42,6 @@ files:
|
|
42
42
|
- lib/rspec/example_steps/example_group.rb
|
43
43
|
- lib/rspec/example_steps/notification.rb
|
44
44
|
- lib/rspec/example_steps/reporter.rb
|
45
|
-
- lib/rspec/example_steps/world.rb
|
46
45
|
- rspec-example_steps.gemspec
|
47
46
|
- spec/example_steps_spec.rb
|
48
47
|
- spec/regression_spec.rb
|