Sha256: f258fba508f7eb16a361944b4dbf4cdb30bbf21fa21d805214dd7a0e2d8e2422
Contents?: true
Size: 335 Bytes
Versions: 5
Compression:
Stored size: 335 Bytes
Contents
# -*- encoding : utf-8 -*- require 'spec_helper' describe 'class' do describe './' do subject { String / :index } it { should be_a_kind_of UnboundMethod } it("(klass / method_name).bind(obj).call(x) should be obj.method_name(x)"){ subject.bind("foobarbaz").call("bar") == "foobarbaz".index("bar") } end end
Version data entries
5 entries across 5 versions & 1 rubygems