Sha256: a674919b10bf635a46ab81efd9efff695a28fa6c324323343ac7d923d260d2e0

Contents?: true

Size: 402 Bytes

Versions: 6

Compression:

Stored size: 402 Bytes

Contents

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_raise(NoMethodError) { ActiveSupport::StringInquirer.new("production").production }
  end
end

Version data entries

6 entries across 6 versions & 4 rubygems

Version Path
kajam-1.0.3.rc2 vendor/rails/activesupport/test/string_inquirer_test.rb
radiant-1.0.0.rc2 vendor/rails/activesupport/test/string_inquirer_test.rb
radiant-1.0.0.rc1 vendor/rails/activesupport/test/string_inquirer_test.rb
radiant-0.9.0.rc2 vendor/rails/activesupport/test/string_inquirer_test.rb
usher-0.7.0 spec/rails2_3/vendor/rails/vendor/rails/activesupport/test/string_inquirer_test.rb
recliner-0.0.1 vendor/activesupport/test/string_inquirer_test.rb