Sha256: 2fd2e2d688988f36c05d4eee41fc5328a56a933869edd20ff69ae9cd27affa03

Contents?: true

Size: 1004 Bytes

Versions: 10

Compression:

Stored size: 1004 Bytes

Contents

require_relative "./helpers"

describe Spinebox do
  
  before(:each) do
    Spinebox::Config.reset!
    Dir.chdir "#{Spinebox.root}/templates/app"
  end
  
  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
      config.views.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
    Spinebox.config.views.should be_a Sprockets::Environment
  end
  
  it "should offer straight access to the assets" do
    Spinebox.assets.should be_a Sprockets::Environment
    Spinebox.views.should be_a Sprockets::Environment
  end
  
  it "should load the config from the default path" do
    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

10 entries across 10 versions & 1 rubygems

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