File: test_heckled.rb

package info (click to toggle)
ruby-heckle 1.4.3-4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 240 kB
  • sloc: ruby: 1,486; sh: 45; makefile: 11
file content (27 lines) | stat: -rw-r--r-- 590 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env ruby
#
#  Created by Kevin Clark on 2006-11-10.
#  Copyright (c) 2006. All rights reserved.

require "test/unit"

$:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
require "heckled"

class TestHeckled < Test::Unit::TestCase
  def setup
    @heckled = Heckled.new
  end
  def test_uses_strings
    @heckled.uses_strings
    assert_equal ["Hello, Robert", "Hello, Jeff", "Hi, Frank"], @heckled.names
  end
  
  def test_uses_infinite_loop
    @heckled.uses_infinite_loop?
  end
  
  def test_is_a_klass_method
    assert_equal true, Heckled.is_a_klass_method?
  end
end