Sha256: f01619870d8a9af598d90d174afa9d6dcd5de986806bb908dfd79fe2ff560c6d

Contents?: true

Size: 666 Bytes

Versions: 8

Compression:

Stored size: 666 Bytes

Contents

require_relative "./helpers"

describe Spinebox::Compiler do
  
  before(:each) do
    Dir.chdir "#{Spinebox.root}/templates/app"
    Spinebox.boot!
    File.new("app/assets/images/test.png", "w")
  end
  
  after(:each) do
    FileUtils.rm_rf "app/assets/images/test.png"
    FileUtils.rm_rf "public"
  end
  
  it "should compile the assets and views to the public folder" do
    Dir["public/**/*"].should be_empty
    
    Spinebox::Compiler.compile
    
    [
      "public/assets/application.js",
      "public/assets/application.css",
      "public/assets/test.png",
      "public/index.html"
    ].each{ |file| File.exists?(file).should be_true }
  end
  
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
spinebox-0.0.13 spec/compiler_spec.rb
spinebox-0.0.12 spec/compiler_spec.rb
spinebox-0.0.11 spec/compiler_spec.rb
spinebox-0.0.10 spec/compiler_spec.rb
spinebox-0.0.9 spec/compiler_spec.rb
spinebox-0.0.8 spec/compiler_spec.rb
spinebox-0.0.7 spec/compiler_spec.rb
spinebox-0.0.6 spec/compiler_spec.rb