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
pivotal-screw-unit-0.5.0 vendor/js-test-core/spec/unit/js_test_core/resources/web_root_spec.rb
pivotal-screw-unit-0.5.1 vendor/js-test-core/spec/unit/js_test_core/resources/web_root_spec.rb
pivotal-screw-unit-0.5.2 vendor/js-test-core/spec/unit/js_test_core/resources/web_root_spec.rb
pivotal-screw-unit-0.5.3 vendor/js-test-core/spec/unit/js_test_core/resources/web_root_spec.rb
pivotal-screw-unit-server-0.5.10 vendor/js-test-core/spec/unit/js_test_core/resources/web_root_spec.rb
pivotal-screw-unit-server-0.5.11 vendor/js-test-core/spec/unit/js_test_core/resources/web_root_spec.rb
pivotal-screw-unit-server-0.5.12 vendor/js-test-core/spec/unit/js_test_core/resources/web_root_spec.rb
pivotal-screw-unit-server-0.5.3 vendor/js-test-core/spec/unit/js_test_core/resources/web_root_spec.rb
pivotal-screw-unit-server-0.5.4 vendor/js-test-core/spec/unit/js_test_core/resources/web_root_spec.rb
pivotal-screw-unit-server-0.5.5 vendor/js-test-core/spec/unit/js_test_core/resources/web_root_spec.rb
pivotal-screw-unit-server-0.5.6 vendor/js-test-core/spec/unit/js_test_core/resources/web_root_spec.rb
pivotal-screw-unit-server-0.5.7 vendor/js-test-core/spec/unit/js_test_core/resources/web_root_spec.rb
pivotal-screw-unit-server-0.5.8 vendor/js-test-core/spec/unit/js_test_core/resources/web_root_spec.rb
pivotal-screw-unit-server-0.5.9 vendor/js-test-core/spec/unit/js_test_core/resources/web_root_spec.rb
honkster-screw-unit-server-0.6.3 vendor/js-test-core/spec/unit/js_test_core/resources/web_root_spec.rb
honkster-screw-unit-server-0.6.2 vendor/js-test-core/spec/unit/js_test_core/resources/web_root_spec.rb
honkster-screw-unit-server-0.6.1 vendor/js-test-core/spec/unit/js_test_core/resources/web_root_spec.rb
btakita-screw-unit-server-0.6.0 vendor/js-test-core/spec/unit/js_test_core/resources/web_root_spec.rb
screw-unit-0.5.1 vendor/js-test-core/spec/unit/js_test_core/resources/web_root_spec.rb
screw-unit-server-0.5.3 vendor/js-test-core/spec/unit/js_test_core/resources/web_root_spec.rb