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

Version Path
rspec-steps-0.0.7 lib/rspec-steps/duckpunch/example-group.rb
rspec-steps-0.0.6 lib/rspec-steps/duckpunch/example-group.rb
rspec-steps-0.0.5 lib/rspec-steps/duckpunch/example-group.rb
rspec-steps-0.0.4 lib/rspec-steps/duckpunch/example-group.rb