Sha256: 9e569955e29e54126dbfb33b6ab653adfd3ef67a9487bb4b278089ebefdd3a72

Contents?: true

Size: 435 Bytes

Versions: 4

Compression:

Stored size: 435 Bytes

Contents

ENV["RAILS_ENV"] ||= 'test'

require 'rspec'

$:.unshift(File.dirname(__FILE__) + '/../lib')
require 'georuby-ext'
require 'georuby-ext/rspec_helper'

RSpec.configure do |c|

  c.mock_with :rspec

end

RSpec::Matchers.define :have_same do |*attributes|
  chain :than do |other|
    @other = other
  end
  
  match do |model|
    attributes.all? do |attribute|
      model.send(attribute) == @other.send(attribute)
    end
  end
end 


Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
georuby-ext-0.0.5 spec/spec_helper.rb
georuby-ext-0.0.4 spec/spec_helper.rb
georuby-ext-0.0.3 spec/spec_helper.rb
georuby-ext-0.0.2 spec/spec_helper.rb