Class: VirtualColumnTest

Inherits:
Test::Unit::TestCase
  • Object
show all
Defined in:
lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/virtual_column_test.rb

Instance Method Summary collapse

Instance Method Details

#setupObject



15
16
17
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/virtual_column_test.rb', line 15

def setup
  @virtual_column = ActiveScaffold::DataStructures::Column.new(:fake, ModelStub)
end

#test_searchingObject



30
31
32
33
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/virtual_column_test.rb', line 30

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

#test_sortingObject



25
26
27
28
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/virtual_column_test.rb', line 25

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

#test_virtualityObject



19
20
21
22
23
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/virtual_column_test.rb', line 19

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