File: method_invocation_sink_test.rb

package info (click to toggle)
ruby-instantiator 0.0.6%2Bgit9cbbe70-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch, wheezy
  • size: 152 kB
  • ctags: 101
  • sloc: ruby: 269; makefile: 2
file content (27 lines) | stat: -rw-r--r-- 564 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
require "test/test_helper"
require "instantiator"

class MethodInvocationSinkTest < Test::Unit::TestCase

  include Instantiator

  def setup
    @sink = MethodInvocationSink.new
  end

  def test_should_return_instance_of_string
    assert_instance_of String, @sink.to_str
  end

  def test_should_return_instance_of_fixnum
    assert_instance_of Fixnum, @sink.to_int
  end

  def test_should_return_instance_of_array
    assert_instance_of Array, @sink.to_ary
  end

  def test_should_return_instance_of_hash
    assert_instance_of Hash, @sink.to_hash
  end
end