Class: VirtualColumnTest
- Defined in:
- lib/six-updater-web/vendor/plugins/active_scaffold/test/data_structures/virtual_column_test.rb
Instance Method Summary collapse
Instance Method Details
#setup ⇒ Object
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_searching ⇒ Object
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_sorting ⇒ Object
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_virtuality ⇒ Object
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 |