Sha256: 5713cb2ffbe275efe8f607b65125ffdfc8737e21f819663a7a611aacad91e7bb

Contents?: true

Size: 454 Bytes

Versions: 16

Compression:

Stored size: 454 Bytes

Contents

require 'spec_helper'

module Landable
  module Traffic
    describe TableName do

      describe '#table_name' do
        it 'should generate the correct table name' do
          Visit.send(:table_name).should == "#{Landable.configuration.database_schema_prefix}landable_traffic.visits"
          PageView.send(:table_name).should == "#{Landable.configuration.database_schema_prefix}landable_traffic.page_views"
        end
      end

    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

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