Sha256: 8316c80891611a796c13cfe8f51268170467d9b4980cb40e8118abf41fba98ec

Contents?: true

Size: 1.09 KB

Versions: 17

Compression:

Stored size: 1.09 KB

Contents

require File.expand_path("#{File.dirname(__FILE__)}/../unit_spec_helper")

module JsTestCore
  describe Configuration do
    attr_reader :result
    
    before do
      @result = ""
    end

    describe ".spec_root" do
      it "returns the Dir " do
        Configuration.spec_root_path.should == spec_root_path
      end
    end

    describe ".spec_root_path" do
      it "returns the absolute path of the specs root directory" do
        Configuration.spec_root_path.should == spec_root_path
      end
    end

    describe ".public_path" do
      it "returns the expanded path of the public path" do
        Configuration.public_path.should == public_path
      end
    end

    describe ".core_path" do
      it "returns the expanded path to the JsTestCore core directory" do
        Configuration.core_path.should == core_path
      end
    end

    describe "#root_url" do
      it "returns the url of the site's root" do
        server = Configuration.new
        server.host = "localhost"
        server.port = 9999
        server.root_url.should == "http://localhost:9999"
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 4 rubygems

Version Path
pivotal-screw-unit-0.5.0 vendor/js-test-core/spec/unit/js_test_core/configuration_spec.rb
pivotal-screw-unit-0.5.1 vendor/js-test-core/spec/unit/js_test_core/configuration_spec.rb
pivotal-screw-unit-0.5.2 vendor/js-test-core/spec/unit/js_test_core/configuration_spec.rb
pivotal-screw-unit-0.5.3 vendor/js-test-core/spec/unit/js_test_core/configuration_spec.rb
pivotal-screw-unit-server-0.5.10 vendor/js-test-core/spec/unit/js_test_core/configuration_spec.rb
pivotal-screw-unit-server-0.5.11 vendor/js-test-core/spec/unit/js_test_core/configuration_spec.rb
pivotal-screw-unit-server-0.5.12 vendor/js-test-core/spec/unit/js_test_core/configuration_spec.rb
pivotal-screw-unit-server-0.5.3 vendor/js-test-core/spec/unit/js_test_core/configuration_spec.rb
pivotal-screw-unit-server-0.5.4 vendor/js-test-core/spec/unit/js_test_core/configuration_spec.rb
pivotal-screw-unit-server-0.5.5 vendor/js-test-core/spec/unit/js_test_core/configuration_spec.rb
pivotal-screw-unit-server-0.5.6 vendor/js-test-core/spec/unit/js_test_core/configuration_spec.rb
pivotal-screw-unit-server-0.5.7 vendor/js-test-core/spec/unit/js_test_core/configuration_spec.rb
pivotal-screw-unit-server-0.5.8 vendor/js-test-core/spec/unit/js_test_core/configuration_spec.rb
pivotal-screw-unit-server-0.5.9 vendor/js-test-core/spec/unit/js_test_core/configuration_spec.rb
screw-unit-0.5.1 vendor/js-test-core/spec/unit/js_test_core/configuration_spec.rb
screw-unit-server-0.5.3 vendor/js-test-core/spec/unit/js_test_core/configuration_spec.rb
screw-unit-0.5.2 vendor/js-test-core/spec/unit/js_test_core/configuration_spec.rb