Sha256: af7d5b7ac0dca82444cdd1b6b88ff08c7573e6d2138944aa4c59b17cd7aa66e9
Contents?: true
Size: 855 Bytes
Versions: 3
Compression:
Stored size: 855 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + "/../../test_helper") class Admin::TelevisionAiringsIntegrationTest < ActionController::IntegrationTest def test_new TelevisionTimeSlot.destroy_all @tv_time_slot1 = TelevisionTimeSlot.create!( :time => Time.utc(2010, 2, 14, 9) ) @tv_time_slot2 = TelevisionTimeSlot.create!( :time => Time.utc(2010, 2, 14, 14) ) get "/admin/television_airings/new" assert_response :success # should sort television time slots by time, not by the time string assert_select( 'select[name=?]', 'television_airing[television_time_slot_id]' ) do assert_select 'option:first-child[value=""]' assert_select 'option:nth-child(2)[value=?]', @tv_time_slot1.id assert_select 'option:nth-child(3)[value=?]', @tv_time_slot2.id end end end
Version data entries
3 entries across 2 versions & 1 rubygems