Sha256: 66f40773e9ccfc39e3c0e5d6f465cadd8cf63337073f9a7f933c417b6f89e428

Contents?: true

Size: 415 Bytes

Versions: 1

Compression:

Stored size: 415 Bytes

Contents

module Scorpion
  module Rspec
    module Helper

      def self.included( base )
        base.let( :scorpion ){ Scorpion::Rspec.scorpion_nest.conceive }
        base.send :extend, Scorpion::Rspec::Helper::Methods

        super
      end


      module Methods

        def scorpion( &block )
          before( :each ) do
            scorpion.prepare &block
          end
        end

      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
scorpion-ioc-0.4.0 lib/scorpion/rspec/helper.rb