Sha256: 432656a027c184778a00f5c1184449bae10d48cb600b8aa1739bcca32d01f533

Contents?: true

Size: 498 Bytes

Versions: 7

Compression:

Stored size: 498 Bytes

Contents

module Temporaries
  module Adapters
    class RSpec < Base
      def self.install
        ::RSpec.configure do |config|
          config.extend Extension
          config.include Values
          config.include Directory
        end
      end

      def before(&block)
        context.before(&block)
      end

      def after(&block)
        context.after(&block)
      end

      module Extension
        def temporaries_adapter
          RSpec.new(self)
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
temporaries-0.4.0 lib/temporaries/adapters/rspec.rb
temporaries-0.3.0 lib/temporaries/adapters/rspec.rb
temporaries-0.2.0 lib/temporaries/adapters/rspec.rb
temporaries-0.1.0 lib/temporaries/adapters/rspec.rb
temporaries-0.0.3 lib/temporaries/adapters/rspec.rb
temporaries-0.0.2 lib/temporaries/adapters/rspec.rb
temporaries-0.0.1 lib/temporaries/adapters/rspec.rb