Sha256: 9816657273b4e5f270f11596c30dcb6e0946cfc82d3d97b4e036e1d73469b53c

Contents?: true

Size: 412 Bytes

Versions: 8

Compression:

Stored size: 412 Bytes

Contents

require 'spec_helper'

describe Storey, '#default_schema?' do
  context 'when not in the default schema' do
    it 'return false' do
      Storey.create 'hah' do
        expect(Storey.default_schema?).to be false
      end
    end
  end

  context 'when in the default schema' do
    it 'should return true' do
      Storey.switch do
        expect(Storey.default_schema?).to be true
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
storey-2.2.0 spec/storey/default_schema.rb
storey-2.1.2 spec/storey/default_schema.rb
storey-2.1.1 spec/storey/default_schema.rb
storey-2.1.0 spec/storey/default_schema.rb
storey-2.0.2 spec/storey/default_schema.rb
storey-2.0.1 spec/storey/default_schema.rb
storey-2.0.0 spec/storey/default_schema.rb
storey-1.0.0 spec/storey/default_schema.rb