instiki/vendor/rails/activesupport/test/string_inquirer_test.rb

16 lines
403 B
Ruby
Raw Normal View History

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