Sha256: ee51e8885fce417dd92f103146ef66cde89027b76a87f3ca337065b739fa8705
Contents?: true
Size: 530 Bytes
Versions: 4
Compression:
Stored size: 530 Bytes
Contents
require 'rspec/core' require 'rspec-steps/stepwise' module RSpec::Steps module ClassMethods def steps(*args, &block) options = if args.last.is_a?(Hash) 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