spec/shared_methods_spec.rb in vtools-1.0.1 vs spec/shared_methods_spec.rb in vtools-1.0.2

- old
+ new

@@ -256,13 +256,14 @@ File.stub(:exists?).and_return(false) VTools::CONFIG[:video_storage] = "/root/" end it "successfull" do - FileUtils.should_receive(:mkdir_p).and_return(nil) + VTools::CONFIG[:video_path_generator] = proc { "test/path" } + FileUtils.should_receive(:mkdir_p).with("/root/test/path", :mode => 0755).and_return(nil) expect do - @class.generate_path("test.filename").should == "/root" + @class.generate_path("test.filename").should == "/root/test/path" end.to_not raise_error end it "with error" do FileUtils.should_receive(:mkdir_p).and_return do