Sha256: 3bf34de59010071c5c22f02bfd675bf47808dca78465e76ea7f3cbd3c4f55f4c

Contents?: true

Size: 535 Bytes

Versions: 17

Compression:

Stored size: 535 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'
      Storey.schemas(suffix: true).should include('dun')
    end
  end

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

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

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
storey-2.0.2 spec/storey/create_plain_schema_spec.rb
storey-2.0.1 spec/storey/create_plain_schema_spec.rb
storey-2.0.0 spec/storey/create_plain_schema_spec.rb
storey-1.0.0 spec/storey/create_plain_schema_spec.rb
storey-0.6.0 spec/storey/create_plain_schema_spec.rb
storey-0.5.2 spec/storey/create_plain_schema_spec.rb
storey-0.5.1 spec/storey/create_plain_schema_spec.rb
storey-0.5.0 spec/storey/create_plain_schema_spec.rb
storey-0.4.2 spec/storey/create_plain_schema_spec.rb
storey-0.4.1 spec/storey/create_plain_schema_spec.rb
storey-0.4.0 spec/storey/create_plain_schema_spec.rb
storey-0.3.6 spec/storey/create_plain_schema_spec.rb
storey-0.3.5 spec/storey/create_plain_schema_spec.rb
storey-0.3.4 spec/storey/create_plain_schema_spec.rb
storey-0.3.3 spec/storey/create_plain_schema_spec.rb
storey-0.3.1 spec/storey/create_plain_schema_spec.rb
storey-0.3.0 spec/storey/create_plain_schema_spec.rb