Sha256: 3d41a9ca99f64b5daf7eb4b08c507996805e3c6aae0c28bc95ee7dffd697a0fa

Contents?: true

Size: 511 Bytes

Versions: 2

Compression:

Stored size: 511 Bytes

Contents

require 'spec_helper'

module Landable
  describe TableName do
    describe '#table_name' do
      it 'should generate the correct table name' do
        Page.send(:table_name).should eq "#{Landable.configuration.database_schema_prefix}landable.pages"
        PageRevision.send(:table_name).should eq "#{Landable.configuration.database_schema_prefix}landable.page_revisions"
        Theme.send(:table_name).should eq "#{Landable.configuration.database_schema_prefix}landable.themes"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
landable-1.14.0 spec/concerns/landable/table_name_spec.rb
landable-1.13.2 spec/concerns/landable/table_name_spec.rb