Sha256: f758b9bef6e9cc8d4fdc074bc364ddab62b3b6043bf9df81913b16025929a432
Contents?: true
Size: 1.1 KB
Versions: 9
Compression:
Stored size: 1.1 KB
Contents
require File.expand_path("#{File.dirname(__FILE__)}/../unit_spec_helper") module JsTestServer describe Configuration do attr_reader :result before do @result = "" end describe "#spec_path" do it "returns the Dir " do Configuration.spec_path.should == spec_path end end describe "#spec_path" do it "returns the absolute path of the specs root directory" do Configuration.spec_path.should == spec_path end end describe "#root_path" do it "returns the expanded path of the public path" do Configuration.root_path.should == root_path end end describe "#framework_path" do it "returns the expanded path to the JsTestServer core directory" do Configuration.framework_path.should == framework_path end end describe "#root_url" do it "returns the url of the site's root" do configuration = Configuration.new configuration.host = "localhost" configuration.port = 9999 configuration.root_url.should == "http://localhost:9999" end end end end
Version data entries
9 entries across 9 versions & 2 rubygems