Sha256: 44d6ee75334ba37a525548e16ad741fee08e60c90b29450d7eaceb27d46cf39a
Contents?: true
Size: 707 Bytes
Versions: 8
Compression:
Stored size: 707 Bytes
Contents
require File.dirname(__FILE__) + '/test_helper' require 'fixtures/enumeration' require 'fixtures/enum_controller' class EnumControllerTest < ActionController::TestCase def setup Enumeration.connection.execute 'DELETE FROM enumerations' Rails.application.routes.draw do match '/enum_select' => "enum#enum_select" end end test "should render enum_select" do get :enum_select assert_response :success assert_equal '<select id="test_severity" name="test[severity]"><option value="low">low</option> <option value="medium" selected="selected">medium</option> <option value="high">high</option> <option value="critical">critical</option></select>', @response.body end end
Version data entries
8 entries across 8 versions & 4 rubygems