Sha256: 7319ac8493c0a45bd1b00c4fcda35b9a95dbd502ad48e518948194b689abe02a

Contents?: true

Size: 704 Bytes

Versions: 3

Compression:

Stored size: 704 Bytes

Contents

require File.dirname(__FILE__) + '/spec_helper'
require 'rubygems'

require 'activerecord'
require 'dm-core'

reload_gravtastic!

class User
  include DataMapper::Resource
  is_gravtastic
end

describe ActiveRecord::Base do
  
  it "includes Gravtastic::Resource" do
    ActiveRecord::Base.included_modules.should include(Gravtastic::Resource)
  end
  
  it "responds to .is_gravtastic" do
    ActiveRecord::Base.should respond_to(:is_gravtastic)
  end
  
end

describe DataMapper::Resource do
  
  it "includes Gravtastic::Resource" do
    User.included_modules.should include(Gravtastic::Resource)
  end
  
  it "responds to .is_gravtastic" do
    User.should respond_to(:is_gravtastic)
  end
  
end


Version data entries

3 entries across 3 versions & 3 rubygems

Version Path
chrislloyd-gravtastic-2.0.0 spec/gravtastic_integration_spec.rb
negonicrac-gravtastic-2.0.0 spec/gravtastic_integration_spec.rb
gravtastic-2.0.0 spec/gravtastic_integration_spec.rb