Rails 2.1.1
Among other things, a security fix.
This commit is contained in:
parent
d2c4c8737c
commit
d4f97345db
354 changed files with 21027 additions and 3072 deletions
15
vendor/rails/activesupport/test/string_inquirer_test.rb
vendored
Normal file
15
vendor/rails/activesupport/test/string_inquirer_test.rb
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue