Sha256: ed1d5509ae3db3e7a04815ae9664dc5fdaeb32fb39ee502a1812950e2d640334
Contents?: true
Size: 842 Bytes
Versions: 4
Compression:
Stored size: 842 Bytes
Contents
require 'spec_helper' describe Storey::Hstore do describe '.install' do it 'installs the extension into the hstore schema' do Storey.configuration.persistent_schemas = %w(hstore) described_class.install expect { ::ActiveRecord::Base.connection.execute "DROP EXTENSION hstore" }. to_not raise_error end context 'hstore is not one of the persistent schemas' do it 'fails with an StoreyError' do Storey.configuration.persistent_schemas = [] message = 'You are attempting to install hstore data type, but the hstore schema (where the data type will be installed) is not one of the persistent schemas. Please add hstore to the list of persistent schemas.' expect { described_class.install }. to raise_error(Storey::StoreyError, message) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
storey-2.2.0 | spec/storey/hstore_spec.rb |
storey-2.1.2 | spec/storey/hstore_spec.rb |
storey-2.1.1 | spec/storey/hstore_spec.rb |
storey-2.1.0 | spec/storey/hstore_spec.rb |