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

Version Path
honkster-js-test-server-0.2.12 spec/unit/js_test_core/resources/web_root_spec.rb
honkster-js-test-server-0.2.11 spec/unit/js_test_core/resources/web_root_spec.rb
honkster-js-test-server-0.2.10 spec/unit/js_test_core/resources/web_root_spec.rb
honkster-js-test-server-0.2.9 spec/unit/js_test_core/resources/web_root_spec.rb
js-test-server-0.2.8 spec/unit/js_test_core/resources/web_root_spec.rb
js-test-server-0.2.7 spec/unit/js_test_core/resources/web_root_spec.rb
js-test-server-0.2.6 spec/unit/js_test_core/resources/web_root_spec.rb
js-test-server-0.2.1 spec/unit/js_test_core/resources/web_root_spec.rb
js-test-server-0.2.0 spec/unit/js_test_core/resources/web_root_spec.rb