Sha256: 3e58e1d9c355766f50c7e9528ef614464f050e16803f87601a8e04f1751ddf21
Contents?: true
Size: 488 Bytes
Versions: 2
Compression:
Stored size: 488 Bytes
Contents
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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
activejob-lock-0.0.2 | rails/activesupport/test/string_inquirer_test.rb |
activejob-lock-0.0.1 | rails/activesupport/test/string_inquirer_test.rb |