test/loader_test.rb in boson-0.0.1 vs test/loader_test.rb in boson-0.1.0
- old
+ new
@@ -28,10 +28,10 @@
Manager.stubs(:loader_create).returns(libs[0])
capture_stderr { load('blah', :no_mock=>true, :verbose=>true).should == false }.should =~ /already exists/
end
test "loads and strips aliases from a library's commands" do
- with_config(:commands=>{"blah"=>{:alias=>'b'}}) do
+ with_config(:command_aliases=>{"blah"=>'b'}) do
load :blah, :file_string=>"module Blah; def blah; end; alias_method(:b, :blah); end"
library_loaded?('blah')
library('blah').commands.should == ['blah']
end
end