Sha256: a48dbf72c8b75e97e34bec8e00f11a6f738a31f3480eb0e6df52f17e1073f619

Contents?: true

Size: 556 Bytes

Versions: 2

Compression:

Stored size: 556 Bytes

Contents

require "test/helper"
require 'test/fixtures/inherited_stuff'

module TestBelt::Utils

  class Test < Test::Unit::TestCase
    include TestBelt

    context "the util"
    subject { Utils }

    should have_instance_method :local_public_instance_methods
  end

  class LocalMethodsTest < Test
    context "'local_public_instance_methods'"

    should "fine a class's local public instance methods" do
      assert_equal(
        ["subclass_stuff", "mixin_stuff"].sort,
        subject.local_public_instance_methods(SubStuff).sort
      )
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
test-belt-1.1.2 test/utils_test.rb
test-belt-1.1.1 test/utils_test.rb