Sha256: 167f2c51d23feb6010c1da1e9df53993d67f437b31dc67c4872f629c64d0dd4a

Contents?: true

Size: 907 Bytes

Versions: 5

Compression:

Stored size: 907 Bytes

Contents

# encoding: UTF-8
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 should be app_root/themes/default/public/" do
      Mango::Application.public.should == (FIXTURE_ROOT + "themes/default/public").to_s
    end

    it "styles should be app_root/themes/default/styles/" do
      Mango::Application.styles.should == (FIXTURE_ROOT + "themes/default/styles").to_s
    end

    it "content should be app_root/content/" do
      Mango::Application.content.should == (FIXTURE_ROOT + "content").to_s
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mango-0.5.4 spec/lib/application_spec.rb
mango-0.5.3 spec/lib/application_spec.rb
mango-0.5.2 spec/lib/application_spec.rb
mango-0.5.1 spec/lib/application_spec.rb
mango-0.5.0 spec/lib/application_spec.rb