Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (19 sloc) 624 Bytes
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
Jump to Line
Something went wrong with that request. Please try again.