spec/vendorer_spec.rb in vendorer-0.1.13 vs spec/vendorer_spec.rb in vendorer-0.1.14
- old
+ new
@@ -476,9 +476,16 @@
"
vendorer
read('lib/vendorer/version.rb').should include("0.1.0")
end
+ it "passes the path to the working copy to the block" do
+ write "Vendorfile", "
+ from('../../.git'){|path| puts `ls #\{path}` }
+ "
+ vendorer.should include('vendorer.gemspec')
+ end
+
context "with file" do
it "copies" do
write "Vendorfile", "
from '../../.git' do
file 'Readme.md'