Sha256: af6b4d494f5f8db6d773e918f848db11daf46c5359b262a97c7c4baa5039e129

Contents?: true

Size: 430 Bytes

Versions: 2

Compression:

Stored size: 430 Bytes

Contents

Dir.chdir(File.join(File.dirname(__FILE__),"..,lib".split(','))) do
  require 'fakes.rb'
end

def catch_exception(&block)
  begin
    yield
  rescue Exception => e
    e
  end
end

module RSpec
  Matchers.define :contain do|string_to_find|
    match do|string_element|
        string_element.include?(string_to_find)
    end
  end
end

RSpec.configure do |config|
  config.mock_with :rspec do |c|
    c.syntax = :should
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fakes-1.1.6 spec/spec_helper.rb
fakes-1.1.5 spec/spec_helper.rb