Sha256: bc02f5edcdd692ddcaf7fa5456b0fa4ea9d690fa6295aee4c716addab99251bd
Contents?: true
Size: 836 Bytes
Versions: 1
Compression:
Stored size: 836 Bytes
Contents
# -*- encoding: utf-8 -*- require './spec/helper' describe Compiler do before :all do @project = ProjectCreator.new('spec/project-name') @project.create @compiler = Compiler.new File.expand_path('spec/project-name') end after :all do clean_test_repository end def write_file name, content File.open(File.join('spec/project-name', name), "w") do |file| file.puts content end end it "should build an index.html page in www" do @compiler.compile File.exist?('spec/project-name/www/index.html').should == true end it "should build two pages" do write_file 'pages/doc.html', '<h1>documentation</h1>' @compiler.compile File.exist?('spec/project-name/www/index.html').should == true File.exist?('spec/project-name/www/doc.html').should == true end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
genit-0.1 | spec/compiler_spec.rb |