7600aef48b
As a side benefit, fix an (non-user-visible) bug in display_s5(). Also fixed a bug where removing orphaned pages did not expire cached summary pages.
16 lines
403 B
Ruby
16 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
|