Sha256: 3e235889dfd999656770613cbcf1d3ac120edc3b4f5ebc368eccc68996a9598c
Contents?: true
Size: 534 Bytes
Versions: 41
Compression:
Stored size: 534 Bytes
Contents
require 'test_helper' module Workarea module Admin class ContentHelperTest < ViewTest def test_options_for_category category = create_category deleted_category = create_category.tap(&:destroy) options = %(<option selected="selected" value="#{category.id}">#{category.name}</option>) assert_equal('', options_for_category(nil)) assert_equal('', options_for_category(deleted_category.id)) assert_equal(options, options_for_category(category.id)) end end end end
Version data entries
41 entries across 41 versions & 1 rubygems