Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (18 sloc) 0.484 kB
require 'abstract_unit'
class StringInquirerTest < ActiveSupport::TestCase
def setup
@string_inquirer = ActiveSupport::StringInquirer.new('production')
end
def test_match
assert @string_inquirer.production?
end
def test_miss
refute @string_inquirer.development?
end
def test_missing_question_mark
assert_raise(NoMethodError) { @string_inquirer.production }
end
def test_respond_to
assert_respond_to @string_inquirer, :development?
end
end
Jump to Line
Something went wrong with that request. Please try again.