Sha256: 4e38fa1aae027a21b0bd5999f54de15703bff44b75085c9e94700e90b20b45bb
Contents?: true
Size: 1.79 KB
Versions: 3
Compression:
Stored size: 1.79 KB
Contents
require "spec_helper" describe Mango::Application do describe "settings" do it "root should be app_root" do Mango::Application.root.should == FIXTURE_ROOT.to_s end it "theme should be default" do Mango::Application.theme.should == "default" end it "views should be app_root/themes/default/views/" do Mango::Application.views.should == (FIXTURE_ROOT + "themes/default/views").to_s end it "public_dir should be app_root/themes/default/public/" do Mango::Application.public_dir.should == (FIXTURE_ROOT + "themes/default/public").to_s end it "styles should be app_root/themes/default/stylesheets/" do Mango::Application.stylesheets.should == (FIXTURE_ROOT + "themes/default/stylesheets").to_s end it "styles should be app_root/themes/default/javascripts/" do Mango::Application.javascripts.should == (FIXTURE_ROOT + "themes/default/javascripts").to_s end it "content should be app_root/content/" do Mango::Application.content.should == (FIXTURE_ROOT + "content").to_s end end ################################################################################################# describe "constants" do it "defines JAVASCRIPT_TEMPLATE_ENGINES" do Mango::Application::JAVASCRIPT_TEMPLATE_ENGINES.should == { Tilt::CoffeeScriptTemplate => :coffee } end it "defines STYLESHEET_TEMPLATE_ENGINES" do Mango::Application::STYLESHEET_TEMPLATE_ENGINES.should == { Tilt::ScssTemplate => :scss, Tilt::SassTemplate => :sass } end it "defines VIEW_TEMPLATE_ENGINES" do Mango::Application::VIEW_TEMPLATE_ENGINES.should == { Tilt::HamlTemplate => :haml, Tilt::ERBTemplate => :erb, Tilt::LiquidTemplate => :liquid } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mango-0.8.0 | spec/lib/application_spec.rb |
mango-0.7.1 | spec/lib/application_spec.rb |
mango-0.7.0 | spec/lib/application_spec.rb |