Sha256: 572a5ba8b9b053ace405671a3493cce4f77a73a6606adf0267c2bc3ed399230e

Contents?: true

Size: 604 Bytes

Versions: 59

Compression:

Stored size: 604 Bytes

Contents

require 'test_helper'

class SearchColumnHelpersTest < ActionView::TestCase
  include ActiveScaffold::Helpers::SearchColumnHelpers

  def setup
    @column = ActiveScaffold::DataStructures::Column.new(:adult, Person)
    @record = Person.new
  end

  def test_choices_for_boolean_search_ui
    assert_dom_equal "<select name=\"search[adult]\"><option value=\"\">- select -</option>\n<option value=\"true\">True</option>\n<option value=\"false\" selected=\"selected\">False</option></select>", active_scaffold_search_boolean(@column, :object => @record, :name => 'search[adult]', :value => '0')
  end
end

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
active_scaffold-3.7.0 test/helpers/search_column_helpers_test.rb
active_scaffold-3.6.20 test/helpers/search_column_helpers_test.rb
active_scaffold-3.6.19 test/helpers/search_column_helpers_test.rb
active_scaffold-3.6.17 test/helpers/search_column_helpers_test.rb
active_scaffold-3.6.15 test/helpers/search_column_helpers_test.rb
active_scaffold-3.6.14 test/helpers/search_column_helpers_test.rb
active_scaffold-3.6.13 test/helpers/search_column_helpers_test.rb
active_scaffold-3.6.12 test/helpers/search_column_helpers_test.rb
active_scaffold-3.6.11.1 test/helpers/search_column_helpers_test.rb
active_scaffold-3.6.11 test/helpers/search_column_helpers_test.rb
active_scaffold-3.6.10 test/helpers/search_column_helpers_test.rb
active_scaffold-3.6.9 test/helpers/search_column_helpers_test.rb
active_scaffold-3.6.8 test/helpers/search_column_helpers_test.rb
active_scaffold-3.6.6 test/helpers/search_column_helpers_test.rb
active_scaffold-3.6.5 test/helpers/search_column_helpers_test.rb
active_scaffold-3.6.4.1 test/helpers/search_column_helpers_test.rb
active_scaffold-3.6.4 test/helpers/search_column_helpers_test.rb
active_scaffold-3.6.3 test/helpers/search_column_helpers_test.rb
active_scaffold-3.6.2 test/helpers/search_column_helpers_test.rb
active_scaffold-3.6.1 test/helpers/search_column_helpers_test.rb