Sha256: 5ac4a38de55688044609595a82baa08a011335636a8aa173e326db497ee00aa3

Contents?: true

Size: 513 Bytes

Versions: 16

Compression:

Stored size: 513 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 == "#{Landable.configuration.database_schema_prefix}landable.pages"
        PageRevision.send(:table_name).should == "#{Landable.configuration.database_schema_prefix}landable.page_revisions"
        Theme.send(:table_name).should == "#{Landable.configuration.database_schema_prefix}landable.themes"
      end
    end

  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
landable-1.13.1 spec/concerns/landable/table_name_spec.rb
landable-1.12.3 spec/concerns/landable/table_name_spec.rb
landable-1.12.2 spec/concerns/landable/table_name_spec.rb
landable-1.12.1 spec/concerns/landable/table_name_spec.rb
landable-1.11.1 spec/concerns/landable/table_name_spec.rb
landable-1.11.0 spec/concerns/landable/table_name_spec.rb
landable-1.10.0.rc2 spec/concerns/landable/table_name_spec.rb
landable-1.10.0.rc1 spec/concerns/landable/table_name_spec.rb
landable-1.9.2 spec/concerns/landable/table_name_spec.rb
landable-1.9.1 spec/concerns/landable/table_name_spec.rb
landable-1.9.0 spec/concerns/landable/table_name_spec.rb
landable-1.9.0.rc2 spec/concerns/landable/table_name_spec.rb
landable-1.9.0.rc1 spec/concerns/landable/table_name_spec.rb
landable-1.8.0 spec/concerns/landable/table_name_spec.rb
landable-1.7.1.rc1 spec/concerns/landable/table_name_spec.rb
landable-1.7.0 spec/concerns/landable/table_name_spec.rb