Sha256: 272662709e9dd24f9f2d11898937f2f5c12f918d642e26ab2b6c71dfc26ea902

Contents?: true

Size: 383 Bytes

Versions: 20

Compression:

Stored size: 383 Bytes

Contents

$: << File.join(File.dirname(__FILE__), '/../lib')
require 'rspec'
require 'rspec/mocks'
require 'medea'

class Message < Medea::JasonObject
end

class User < Medea::JasonObject
  has_many :followees, User
  owns_many :messages, Message
end

#mock the db url
module JasonDB
  def JasonDB::db_auth_url mode=:secure
    "https://michael:password@rest.jasondb.com/medea-test/"
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
medea-0.6.6 spec/spec_helper.rb
medea-0.6.5 spec/spec_helper.rb
medea-0.6.4 spec/spec_helper.rb
medea-0.6.3 spec/spec_helper.rb
medea-0.6.1 spec/spec_helper.rb
medea-0.6.0 spec/spec_helper.rb
medea-0.5.4 spec/spec_helper.rb
medea-0.5.3 spec/spec_helper.rb
medea-0.5.2 spec/spec_helper.rb
medea-0.5.1 spec/spec_helper.rb
medea-0.5.0 spec/spec_helper.rb
medea-0.4.0 spec/spec_helper.rb
medea-0.3.7 spec/spec_helper.rb
medea-0.3.6 spec/spec_helper.rb
medea-0.3.5 spec/spec_helper.rb
medea-0.3.4 spec/spec_helper.rb
medea-0.3.3 spec/spec_helper.rb
medea-0.3.2 spec/spec_helper.rb
medea-0.3.1 spec/spec_helper.rb
medea-0.3.0 spec/spec_helper.rb