Sha256: 46fec71adb59411c66a7ce0449309887b833d7cfd67354ee68a051b355e394f4
Contents?: true
Size: 672 Bytes
Versions: 9
Compression:
Stored size: 672 Bytes
Contents
require File.expand_path("#{File.dirname(__FILE__)}/../../unit_spec_helper") module JsTestServer::Server::Resources describe WebRoot do macro("includes a link to the spec suite") do |relative_path| it "includes a link to the spec suite" do response = get(relative_path) response.should be_http( 200, {}, "" ) doc = Nokogiri::HTML(response.body) doc.css("a[href='/specs']").should_not be_nil end end describe "GET " do send("includes a link to the spec suite", "") end describe "GET /" do send("includes a link to the spec suite", "/") end end end
Version data entries
9 entries across 9 versions & 2 rubygems