mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
a731125f12
The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
23 lines
488 B
Ruby
23 lines
488 B
Ruby
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
|
|
assert_not @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
|