spec/bonsai/generate_spec.rb in bonsai-1.1.3 vs spec/bonsai/generate_spec.rb in bonsai-1.1.4
- old
+ new
@@ -6,21 +6,21 @@
FileUtils.rm_rf @path
Bonsai::Generate.new(@path)
end
it "should create base directories" do
- %w(content content/index templates public public/docs public/docs/css public/docs/js).each do |dir|
+ %w(content content/index templates public public/css public/js).each do |dir|
File.directory?("#{@path}/#{dir}").should be_true
end
end
it "should copy the htaccess file to public/.htaccess" do
File.exists?("#{@path}/public/.htaccess").should be_true
end
it "should copy the base.less file" do
- File.exists?("#{@path}/public/docs/css/base.less").should be_true
+ File.exists?("#{@path}/public/css/base.less").should be_true
end
it "should copy an index page" do
File.exists?("#{@path}/content/index/default.yml").should be_true
end
@@ -35,14 +35,14 @@
it "should create a site.yml" do
File.exists?("#{@path}/site.yml").should be_true
end
- it "should generate 21 files" do
- Dir.glob("#{@path}/**/*", File::FNM_DOTMATCH).select{|f| File.file?(f) }.size.should == 21
+ it "should generate 23 files" do
+ Dir.glob("#{@path}/**/*", File::FNM_DOTMATCH).select{|f| File.file?(f) }.size.should == 23
end
- it "should generate 16 directories" do
- Dir.glob("#{@path}/**/*").select{|f| File.directory?(f) }.size.should == 16
+ it "should generate 15 directories" do
+ Dir.glob("#{@path}/**/*").select{|f| File.directory?(f) }.size.should == 15
end
end
end
\ No newline at end of file