Sha256: 03f448c7b816b0f22ab2dbcf7da293621e580e4a4c21f1e7d0a0ebcd8014bcba
Contents?: true
Size: 1000 Bytes
Versions: 4
Compression:
Stored size: 1000 Bytes
Contents
require_relative "./helpers" describe Spinebox do before(:each) do Spinebox::Config.reset! Dir.chdir "#{Spinebox.root}/templates" 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
spinebox-0.0.5 | spec/config_spec.rb |
spinebox-0.0.4 | spec/config_spec.rb |
spinebox-0.0.3 | spec/config_spec.rb |
spinebox-0.0.2 | spec/config_spec.rb |