Sha256: 125730a5ba8914712e234f4641069b7376599c9746bb0e6f84945c708929933b
Contents?: true
Size: 420 Bytes
Versions: 5
Compression:
Stored size: 420 Bytes
Contents
# -*- encoding : utf-8 -*- require 'spec_helper' describe UnboundMethod do describe '#<' do let(:unbound_method){ String.instance_method(:index) } subject { unbound_method < "foobarbaz" } it { should be_a_kind_of Method } it('(unbound_method < obj).call(x) should be unbound_method.bind(obj).call(x)'){ subject.call('bar').should == unbound_method.bind("foobarbaz").call("bar") } end end
Version data entries
5 entries across 5 versions & 1 rubygems