Sha256: b13c28720ce5e432e895cb67eca39ad4e1dc476422884e63da62c4f87cbc41bd

Contents?: true

Size: 604 Bytes

Versions: 11

Compression:

Stored size: 604 Bytes

Contents

$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib"))

require "rubygems"
require "active_support/core_ext"
require "rspec"
require "rr"
require "mongoid"
require "webmock/rspec"

require "vidibus-user"

Mongoid.configure do |config|
  name = "vidibus-user_test"
  host = "localhost"
  config.master = Mongo::Connection.new.db(name)
  config.logger = nil
end

RSpec.configure do |config|
  config.include WebMock
  config.mock_with :rr
  config.before(:each) do
    Mongoid.master.collections.select {|c| c.name !~ /system/}.each(&:drop)
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
vidibus-user-0.0.10 spec/spec_helper.rb
vidibus-user-0.0.9 spec/spec_helper.rb
vidibus-user-0.0.8 spec/spec_helper.rb
vidibus-user-0.0.7 spec/spec_helper.rb
vidibus-user-0.0.6 spec/spec_helper.rb
vidibus-user-0.0.5 spec/spec_helper.rb
vidibus-user-0.0.4 spec/spec_helper.rb
vidibus-user-0.0.3 spec/spec_helper.rb
vidibus-user-0.0.2 spec/spec_helper.rb
vidibus-user-0.0.1 spec/spec_helper.rb
vidibus-user-0.0.0 spec/spec_helper.rb