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