Sha256: b6deb3d29dd5d7fe8cba5be074275e15e8ddfa0408bd514ffe7b51b24910b56d

Contents?: true

Size: 715 Bytes

Versions: 2

Compression:

Stored size: 715 Bytes

Contents

module Foodtaster
  module RSpec
    autoload :ExampleMethods, "foodtaster/rspec/example_methods"
    autoload :DslMethods, "foodtaster/rspec/dsl_methods"

    def self.configure
      ::RSpec::configure do |config|
        config.include Foodtaster::RSpec::ExampleMethods
        config.extend Foodtaster::RSpec::DslMethods

        config.before(:suite) do
          Foodtaster::RSpecRun.current.start
        end

        config.after(:suite) do
          Foodtaster::RSpecRun.current.stop
        end
      end
    end
  end
end

# require all matchers
Dir[File.dirname(__FILE__) + "/rspec/matchers/*.rb"].each do |f|
  require f
end

RSpec::Matchers.send(:include, Foodtaster::RSpec::Matchers::MatcherMethods)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
foodtaster-0.0.10 lib/foodtaster/rspec.rb
foodtaster-0.0.9 lib/foodtaster/rspec.rb