Sha256: b5dbecde6b91001d16109ba76dfdd4f398825460c4b0ae610501b0ae2e805ae9

Contents?: true

Size: 623 Bytes

Versions: 1

Compression:

Stored size: 623 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
require 'method_info/object_method'

module MethodInfo
  module ObjectMethod
    describe "method_info" do
      it "passes the object it was called on to the option handler" do
        @obj = Object.new
        MethodInfo::OptionHandler.should_receive(:handle).with(@obj, anything)
        @obj.method_info
      end

      it "passes its options to the option handler" do
        MethodInfo::OptionHandler.should_receive(:handle).with(anything, { :a => :one, :b => :two })
        Object.method_info(:a => :one, :b => :two)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
method_info-0.1.11 spec/method_info/object_method_spec.rb