Sha256: 87dc645227c4a2945f7928ca628a6d6dd1fe51218b0c21f15d0475cd5c97ac43

Contents?: true

Size: 446 Bytes

Versions: 1

Compression:

Stored size: 446 Bytes

Contents

begin
  require 'rspec'
rescue LoadError
  require 'rubygems' unless ENV['NO_RUBYGEMS']
  require 'rspec'
end

$:.unshift(File.dirname(__FILE__) + '/../lib')

require 'georuby-ext'
require 'georuby-ext/rspec_helper'

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

1 entries across 1 versions & 1 rubygems

Version Path
georuby-ext-0.0.1 spec/spec_helper.rb