1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activesupport/test/string_inquirer_test.rb
2008-06-04 15:06:32 -05:00

15 lines
403 B
Ruby

require 'abstract_unit'
class StringInquirerTest < Test::Unit::TestCase
def test_match
assert ActiveSupport::StringInquirer.new("production").production?
end
def test_miss
assert !ActiveSupport::StringInquirer.new("production").development?
end
def test_missing_question_mark
assert_raises(NoMethodError) { ActiveSupport::StringInquirer.new("production").production }
end
end