blob: 7f11f667df168954a3a60ba435e8ece80c451b0f (
plain) (
tree)
|
|
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_raise(NoMethodError) { ActiveSupport::StringInquirer.new("production").production }
end
end
|