Sha256: a657e86fc9cd9930922d81703ca87eef3ce1ae3392b226287aa67fbe6a5301fc

Contents?: true

Size: 780 Bytes

Versions: 1

Compression:

Stored size: 780 Bytes

Contents

require_relative "./helpers"

describe Spinebox do
  
  it "should offer a block style config method" do
    Spinebox.config do |config|
      config.should be_a OpenStruct
      config.assets.should be_a Sprockets::Environment
    end
  end
  
  it "should offer a normal configuration" do
    Spinebox.config.should be_a OpenStruct
    Spinebox.config.assets.should be_a Sprockets::Environment
  end
  
  it "should offer straight access to the assets" do
    Spinebox.assets.should be_a Sprockets::Environment
  end
  
  it "should load the config from the default path" do
    Dir.chdir "#{Spinebox.root}/templates"
    
    Spinebox.config.assets.paths.should have(0).paths
    Spinebox.load_config!
    Spinebox.config.assets.paths.should have_at_least(2).paths
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spinebox-0.0.1 spec/config_spec.rb