Sha256: b66b4b1edd80f63638ae3ac6a325dc4422bd6618d34740f215dce5851030ce9b

Contents?: true

Size: 624 Bytes

Versions: 121

Compression:

Stored size: 624 Bytes

Contents

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

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

121 entries across 121 versions & 6 rubygems

Version Path
active_scaffold-3.0.0 test/data_structures/virtual_column_test.rb