search for: main_object

Displaying 1 result from an estimated 1 matches for "main_object".

Did you mean: mail_object
2007 Oct 24
3
How do you specify a rubygem is being required?
...;require" because it works as a standalone method, but not as a Kernel.require call (ie Kernel.require ''sqlite3'' => "LoadError: no such file to load -- sqlite3"). Do I need to set the expectation on the "main" object? I have also tried this: main_object = self describe SqliteConnection, " class" do it "should require ''sqlite3''" do main_object.should_receive(:require).with("sqlite3") SqliteConnection.new end end but fails with this: Mock ''Object'' e...