Sha256: 7358708590345a6d6ed52505b1005fb8f2331c3fba4155030b9200bdbbd5337d

Contents?: true

Size: 416 Bytes

Versions: 5

Compression:

Stored size: 416 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

5 entries across 5 versions & 2 rubygems

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