spec/bonsai/generate_spec.rb in bonsai-1.0.1 vs spec/bonsai/generate_spec.rb in bonsai-1.1.0
- old
+ new
@@ -27,11 +27,19 @@
it "should copy a default template" do
File.exists?("#{@path}/templates/default.mustache").should be_true
end
- it "should generate 4 files" do
- Dir.glob("#{@path}/**/*", File::FNM_DOTMATCH).select{|f| File.file?(f) }.size.should == 4
+ it "should create a robots.txt" do
+ File.exists?("#{@path}/public/robots.txt").should be_true
+ end
+
+ it "should create a site.yml" do
+ File.exists?("#{@path}/site.yml").should be_true
+ end
+
+ it "should generate 6 files" do
+ Dir.glob("#{@path}/**/*", File::FNM_DOTMATCH).select{|f| File.file?(f) }.size.should == 6
end
it "should generate 7 directories" do
Dir.glob("#{@path}/**/*").select{|f| File.directory?(f) }.size.should == 7
end
\ No newline at end of file