Sha256: 63dee5ad0deb8c613ec0ed32682eaaa857d3783e2ed2cb27eac2dd3e25ffa8d2

Contents?: true

Size: 777 Bytes

Versions: 100

Compression:

Stored size: 777 Bytes

Contents

require File.join(File.dirname(__FILE__), '../test_helper.rb')
# require 'test/model_stub'

class ActiveScaffold::DataStructures::Column
  def h(value)
    value
  end

  def format_column(value)
    value
  end
end

class VirtualColumnTest < Test::Unit::TestCase
  def setup
    @virtual_column = ActiveScaffold::DataStructures::Column.new(:fake, ModelStub)
  end

  def test_virtuality
    assert !@virtual_column.column
    assert !@virtual_column.association
    assert @virtual_column.virtual?
  end

  def test_sorting
    # right now, there's no intelligent sorting on virtual columns
    assert !@virtual_column.sortable?
  end

  def test_searching
    # right now, there's no intelligent searching on virtual columns
    assert !@virtual_column.searchable?
  end
end

Version data entries

100 entries across 100 versions & 3 rubygems

Version Path
six-updater-web-0.20.4 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/virtual_column_test.rb
six-updater-web-0.20.3 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/virtual_column_test.rb
six-updater-web-0.20.2 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/virtual_column_test.rb
six-updater-web-0.20.1 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/virtual_column_test.rb
six-updater-web-0.20.0 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/virtual_column_test.rb
six-updater-web-0.19.7 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/virtual_column_test.rb
six-updater-web-0.19.6 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/virtual_column_test.rb
six-updater-web-0.19.5 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/virtual_column_test.rb
six-updater-web-0.19.4 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/virtual_column_test.rb
six-updater-web-0.19.3 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/virtual_column_test.rb
six-updater-web-0.19.2 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/virtual_column_test.rb
six-updater-web-0.19.1 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/virtual_column_test.rb
six-updater-web-0.19.0 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/virtual_column_test.rb
six-updater-web-0.18.2 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/virtual_column_test.rb
six-updater-web-0.18.1 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/virtual_column_test.rb
six-updater-web-0.18.0 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/virtual_column_test.rb
six-updater-web-0.17.7 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/virtual_column_test.rb
six-updater-web-0.17.6 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/virtual_column_test.rb
six-updater-web-0.17.5 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/virtual_column_test.rb
six-updater-web-0.17.4 lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/virtual_column_test.rb