Sha256: 6a929f71efb0e5990dfdc3150ac8a79c7e83cea74ca98f28c29dafea6fcc5c90

Contents?: true

Size: 545 Bytes

Versions: 3

Compression:

Stored size: 545 Bytes

Contents

require 'rspec/core'
require 'rspec-steps/stepwise'

module RSpec::Steps
  module DSL
    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::DSL

extend RSpec::Steps::DSL
Module::send(:include, RSpec::Steps::DSL)

RSpec::configuration.include(RSpecStepwise, :stepwise => true)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rspec-steps-0.4.1 lib/rspec-steps/duckpunch/example-group.rb
rspec-steps-0.4.0 lib/rspec-steps/duckpunch/example-group.rb
rspec-steps-0.3.0 lib/rspec-steps/duckpunch/example-group.rb