Sha256: 5c43d8fbe0756975cf35f20a0823a1b773cb18712c8b2b0f421041e4a39d5b49
Contents?: true
Size: 889 Bytes
Versions: 4
Compression:
Stored size: 889 Bytes
Contents
require 'spec_helper' describe Storey::Unsuffixifier do describe '#unsuffixify' do subject { described_class.new(schema_name).unsuffixify } context 'when the suffix is set' do before { Storey.configuration.suffix = '_buff' } context 'when the schema name does not have a suffix' do let(:schema_name) { 'big' } it { should == 'big' } end context 'when the schema name has a suffix' do let(:schema_name) { 'big_buff' } it { should == 'big' } end context 'when the schema name is comma separated schemas' do let(:schema_name) { '"$user",public,froo_buff,la_buff' } it {should == '"$user",public,froo,la'} end end context 'when the suffix is not set' do let(:schema_name) { '"$user",public,froo_buff' } it { should == '"$user",public,froo_buff' } end end end
Version data entries
4 entries across 4 versions & 1 rubygems