Sha256: ddf23beea8d97da7fc306be6935108012fee3c2d7ca4908fa62b3a22e46f78bc
Contents?: true
Size: 1.09 KB
Versions: 7
Compression:
Stored size: 1.09 KB
Contents
require 'helper' class TestAddress < Test::Unit::TestCase context 'an Address to an instance method on the Beverage class' do setup do @address = Cans::Address.new 'Beverage/.i/refreshing' end subject { @address } should 'decode a module_name' do assert_equal 'Beverage', subject.module_name end should 'decode a method_kind' do assert_equal :instance, subject.method_kind end should 'decode a method_name' do assert_equal 'refreshing', subject.method_name end should 'find the target_module' do assert_equal Beverage, subject.target_module end should 'find the target_method' do assert_equal Beverage.instance_method(:refreshing), subject.target_method end end context 'an Address to the Beverage class' do setup do @address = Cans::Address.new 'Beverage' end subject { @address } should 'decode the module_name' do assert_equal 'Beverage', subject.module_name end should 'find the target_module' do assert_equal Beverage, subject.target_module end end end
Version data entries
7 entries across 7 versions & 1 rubygems