Sha256: f9a766a051669cd0a1e061bcb9d39e25236909b99c8b3ac5f0971095b871986f

Contents?: true

Size: 693 Bytes

Versions: 8

Compression:

Stored size: 693 Bytes

Contents

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

require 'activerecord'
# require 'dm-core'
require 'gravtastic'


# class User
#   include DataMapper::Resource
#   is_gravtastic
# end

describe ActiveRecord::Base do

  it "includes Gravtastic" do
    ActiveRecord::Base.included_modules.should include(Gravtastic)
  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)
#   end
#
#   it "responds to .is_gravtastic" do
#     User.should respond_to(:is_gravtastic)
#   end
#
# end


Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
brendanlim-gravtastic-2.1.2 spec/gravtastic_integration_spec.rb
chrislloyd-gravtastic-2.1.0 spec/gravtastic_integration_spec.rb
chrislloyd-gravtastic-2.1.1 spec/gravtastic_integration_spec.rb
chrislloyd-gravtastic-2.1.2 spec/gravtastic_integration_spec.rb
chrislloyd-gravtastic-2.1.3 spec/gravtastic_integration_spec.rb
gravtastic-2.1.3 spec/gravtastic_integration_spec.rb
gravtastic-2.1.0 spec/gravtastic_integration_spec.rb
gravtastic-2.1.1 spec/gravtastic_integration_spec.rb