Sha256: feba79bb1e5d4e88d3b456446e0897ffd3d3745b4102b17cbd8be205cba149fe

Contents?: true

Size: 979 Bytes

Versions: 5

Compression:

Stored size: 979 Bytes

Contents

# encoding: UTF-8
require "spec_helper"

describe Mango::Application do
  describe "settings" do
    before(:each) do
      @expected = SPEC_APP_ROOT
    end

    it "root should be app_root" do
      Mango::Application.root.should == @expected
    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 == File.join(@expected, "themes", "default", "views")
    end

    it "public should be app_root/themes/default/public/" do
      Mango::Application.public.should == File.join(@expected, "themes", "default", "public")
    end

    it "styles should be app_root/themes/default/styles/" do
      Mango::Application.styles.should == File.join(@expected, "themes", "default", "styles")
    end

    it "content should be app_root/content/" do
      Mango::Application.content.should == File.join(@expected, "content")
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mango-0.5.0.beta5 spec/mango/application_spec.rb
mango-0.5.0.beta4 spec/mango/application_spec.rb
mango-0.5.0.beta3 spec/mango/application_spec.rb
mango-0.5.0.beta2 spec/mango/application_spec.rb
mango-0.5.0.beta1 spec/mango/application_spec.rb