Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (12 sloc) 0.405 kB
require 'abstract_unit'
class StringInquirerTest < ActiveSupport::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
Jump to Line
Something went wrong with that request. Please try again.