Sha256: 7d27b1a665180b63dd0e703cec2f902afc497564368491a34d7162613127693d
Contents?: true
Size: 613 Bytes
Versions: 9
Compression:
Stored size: 613 Bytes
Contents
require 'test_helper' class StandardColumnTest < Minitest::Test def setup @standard_column = ActiveScaffold::DataStructures::Column.new(ModelStub.columns.first.name, ModelStub) end def test_virtuality assert @standard_column.column refute @standard_column.virtual? end def test_sorting hash = {:sql => '"model_stubs"."a"'} assert @standard_column.sortable? assert_equal hash, @standard_column.sort # check default end def test_searching assert @standard_column.searchable? assert_equal ['"model_stubs"."a"'], @standard_column.search_sql # check default end end
Version data entries
9 entries across 9 versions & 1 rubygems