Sha256: d5c0bd7c74368f67a330a07c0e9ba647e997af0d458881fbec28521dc13aeabc
Contents?: true
Size: 505 Bytes
Versions: 4
Compression:
Stored size: 505 Bytes
Contents
require 'rspec/core/example_group' require 'rspec-steps/stepwise' module RSpec::Steps module ClassMethods def steps(*args, &block) options = if args.last.is_a?(Hash) then args.pop else {} end options[:stepwise] = true options[:caller] ||= caller args.push(options) describe(*args, &block) end end end RSpec::Core::ExampleGroup.extend RSpec::Steps::ClassMethods include RSpec::Steps::ClassMethods RSpec::configuration.include(RSpecStepwise, :stepwise => true)
Version data entries
4 entries across 4 versions & 1 rubygems