Sha256: ab6c082f79820862d334b9dd465c59371e773691d62e2e66d389ea796b651c09

Contents?: true

Size: 292 Bytes

Versions: 3

Compression:

Stored size: 292 Bytes

Contents

require File.expand_path('../../fixtures/classes', __FILE__)

describe "Delegator#===" do
  it "is delegated" do
    base = mock('base')
    delegator = DelegateSpecs::Delegator.new(base)
    base.should_receive(:===).with(42).and_return(:foo)
    (delegator === 42).should == :foo
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rubysl-delegate-2.0.1 spec/delegator/case_compare_spec.rb
rubysl-delegate-1.0.0 spec/delegator/case_compare_spec.rb
rubysl-delegate-2.0.0 spec/delegator/case_compare_spec.rb