aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/string_questioneer_test.rb
blob: ff9d2c17f936b31c3fce77a69b2deac2d25bfba6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require 'abstract_unit'

class StringQuestioneerTest < Test::Unit::TestCase
  def test_match
    assert StringQuestioneer.new("production").production?
  end
  
  def test_miss
    assert !StringQuestioneer.new("production").development?
  end

  def test_missing_question_mark
    assert_raises(NoMethodError) { StringQuestioneer.new("production").production }
  end
end