Sha256: 3666a8a006b3041d72d84283d058d9eb595b6b9a78d027540ec31b61c4203f9f

Contents?: true

Size: 427 Bytes

Versions: 3

Compression:

Stored size: 427 Bytes

Contents

require 'orangutan'
require 'ClassLibrary.dll'

describe Orangutan::Chantek, 'creating clr stubs' do
  it 'should create stub implementations of a clr interface with a method' do
    o = Orangutan::Chantek.new
    s = o.stub :foo, :clr_interface => ClassLibrary::IHaveAMethod
    c = ClassLibrary::Consumer.new
    c.call_method(s) 
    o.calls[0].should == Orangutan::Call.new(:foo, :my_method, ['thing'])
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
orangutan-0.0.2 spec/spec_chantek_clr.rb
orangutan-0.0.4 spec/spec_chantek_clr.rb
orangutan-0.0.3 spec/spec_chantek_clr.rb