spec/compiler_spec.rb in genit-0.1 vs spec/compiler_spec.rb in genit-0.2
- old
+ new
@@ -30,6 +30,16 @@
@compiler.compile
File.exist?('spec/project-name/www/index.html').should == true
File.exist?('spec/project-name/www/doc.html').should == true
end
+ it "should copy the styles/ into www/" do
+ File.exist?('spec/project-name/www/styles/screen.css').should be_true
+ end
+
+ it "should set the menu in index page" do
+ @compiler.compile
+ doc = Nokogiri::HTML(File.open("spec/project-name/www/index.html"))
+ doc.at_css("ul#menu a#selected")['href'].should == 'index.html'
+ end
+
end