Sha256: 641797516a3a7bda89a80027d08a4587dc3bd4966a93187fef5f36687f35b86b

Contents?: true

Size: 716 Bytes

Versions: 21

Compression:

Stored size: 716 Bytes

Contents

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

module JsTestCore
  module 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
end

Version data entries

21 entries across 21 versions & 6 rubygems

Version Path
screw-unit-0.5.2 vendor/js-test-core/spec/unit/js_test_core/resources/web_root_spec.rb