Sha256: d54b993167d69ed0264a71743e7d34da372516a57f01bf151a1c121f8bb1d555
Contents?: true
Size: 1.04 KB
Versions: 4
Compression:
Stored size: 1.04 KB
Contents
module RSpec module ExampleSteps module ExampleGroup def include_steps(*args) name = args.shift shared_block = RSpec.world.shared_example_steps[name] shared_block or raise ArgumentError, "Could not find shared steps #{name.inspect}" instance_exec(*args, &shared_block) end def Given(message, options = {}, &block) RSpec.world.reporter.process_example_step(self, :given, message, options, &block) end def When(message, options = {}, &block) RSpec.world.reporter.process_example_step(self, :when, message, options, &block) end def Then(message, options = {}, &block) RSpec.world.reporter.process_example_step(self, :then, message, options, &block) end def And(message, options = {}, &block) RSpec.world.reporter.process_example_step(self, :and, message, options, &block) end def But(message, options = {}, &block) RSpec.world.reporter.process_example_step(self, :but, message, options, &block) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems