[Ironruby-core] WatiN .NET 4.0 and the loadFromRemoteSources Element in App.config
Mohammad Azam
lists at ruby-forum.com
Mon Jun 21 12:06:14 EDT 2010
Got the first problem solved by editing the configuration file. Now,
facing problem loading the Interop.SHDocVw assembly. Here is the
complete code:
require 'rubygems'
require 'spec'
require File.dirname(__FILE__) + '/bin/Debug/BusinessObjects.dll'
require File.dirname(__FILE__) + '/bin/Debug/WatiN.Core.dll'
require File.dirname(__FILE__) + '/bin/Debug/Microsoft.mshtml.dll'
require File.dirname(__FILE__) + '/bin/Debug/Interop.SHDocVw.dll'
include BusinessObjects
include WatiN
describe Account, "when something happens" do
before do
IE = WatiN::Core::IE
@ie = IE.new
end
it "should do something" do
end
end
And here is the error:
C:\Projects\IronRubyDemo\IronRubyDemoSolution\BusinessObjects>ir -S spec
testacc
ountbalanceUI.rb
F
1)
Errno::ENOENT in 'BusinessObjects::Account when something happens should
do some
thing'
Could not load file or assembly 'Interop.SHDocVw, Version=1.1.0.0,
Culture=neutr
al, PublicKeyToken=db7cfd3acb5ad44e' or one of its dependencies. The
system cann
ot find the file specified.
./testaccountbalanceUI.rb:18:
Finished in 0.148009 seconds
1 example, 1 failure
--
Posted via http://www.ruby-forum.com/.
More information about the Ironruby-core
mailing list