Sha256: 0e3a52855b410ea4b7d32f07fa919419799aefc408b27e9cc010f3066b130238

Contents?: true

Size: 571 Bytes

Versions: 1

Compression:

Stored size: 571 Bytes

Contents

#!/usr/bin/env rspec
require_relative '../helpers'

require 'rspec'
require 'sequel'

require 'wordnet'
require 'wordnet/model'


#####################################################################
###	C O N T E X T S
#####################################################################

DB = Sequel.connect( 'mock://postgres' )

describe WordNet::Model do

	it "propagates database handle changes to all of its subclasses" do
		subclass = WordNet::Model( :tests )
		newdb = Sequel.mock
		WordNet::Model.db = newdb
		expect( subclass.db ).to equal( newdb )
	end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wordnet-1.0.1 spec/wordnet/model_spec.rb