instiki/vendor/rails/activesupport/test/string_inquirer_test.rb
Jacques Distler e2ccdfd812 Instiki 0.16.5
Update to Rails 2.3.2 (the stable Rails 2.3 release).
Add audio/speex support
Update CHANGELOG
Bump version number
2009-03-16 09:55:30 -05:00

16 lines
402 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_raise(NoMethodError) { ActiveSupport::StringInquirer.new("production").production }
end
end