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

Version Path
mysql_enum_column-0.2.0 test/enum_controller_test.rb
dg-enum_column4-0.1.7 test/enum_controller_test.rb
dg-enum_column4-0.1.6 test/enum_controller_test.rb
dg-enum_column4-0.1.4 test/enum_controller_test.rb
enum_column_strict-0.0.2 test/enum_controller_test.rb
enum_column_strict-0.0.1 test/enum_controller_test.rb
enum_column3-0.1.4 test/enum_controller_test.rb
enum_column3-0.1.3 test/enum_controller_test.rb