test/buildmaster/site/tc_site_spec.rb in BuildMaster-1.0.9 vs test/buildmaster/site/tc_site_spec.rb in BuildMaster-1.1.9
- old
+ new
@@ -5,27 +5,27 @@
require 'cotta/in_memory_system'
require 'site/site_spec'
module BuildMaster
-context 'Site Specification' do
- setup do
+describe 'Site Specification' do
+ before do
@cotta = Cotta.new(InMemorySystem.new)
end
- specify 'get relative path' do
+ it 'get relative path' do
spec = SiteSpec.new(nil, @cotta)
spec.content_dir = '/one/two/content'
spec.relative_to_root(@cotta.file('/one/two/content/images/logo.gif')).to_s.should ==('images/logo.gif')
end
- specify 'supports windows path' do
+ it 'supports windows path' do
spec = SiteSpec.new(nil, @cotta)
spec.content_dir = 'C:\Work\project\content'
spec.relative_to_root(@cotta.file('C:\Work\project\content\images\logo.gif')).to_s.should ==('images/logo.gif')
end
- specify 'initialization with block' do
+ it 'initialization with block' do
spec = SiteSpec.new(__FILE__, @cotta) do |sitespec|
sitespec.content_dir = 'content'
sitespec.output_dir = 'output'
sitespec.page_layout = <<CONTENT
title_header: BuildMaster -
\ No newline at end of file