Sha256: b32ed947f9cc488a85b0c3ec0eeb4c7793e4be543e522d9586f7827cbe5284ad

Contents?: true

Size: 557 Bytes

Versions: 4

Compression:

Stored size: 557 Bytes

Contents

require 'spec_helper'

describe Storey, '.create_plain_schema' do
  context 'when there is no suffix set' do
    it 'should create a schema without a suffix' do
      Storey.create_plain_schema 'dun'
      expect(Storey.schemas(suffix: true)).to include('dun')
    end
  end

  context 'when there is a suffix set' do
    before do
      Storey.configuration.suffix = '_lop'
    end

    it 'should create a schema with the suffix' do
      Storey.create_plain_schema 'dun'
      expect(Storey.schemas(suffix: true)).to include('dun_lop')
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
storey-2.2.0 spec/storey/create_plain_schema_spec.rb
storey-2.1.2 spec/storey/create_plain_schema_spec.rb
storey-2.1.1 spec/storey/create_plain_schema_spec.rb
storey-2.1.0 spec/storey/create_plain_schema_spec.rb