Sha256: 6e22b183579da723b0985af07e8ce854ce0fc651210c630e25103723b3647a71

Contents?: true

Size: 352 Bytes

Versions: 2

Compression:

Stored size: 352 Bytes

Contents

require 'spidr/page'

require 'spec_helper'

shared_examples_for "Page" do
  it "should have a status code" do
    @page.code.should be_integer
  end

  it "should have a body" do
    @page.body.should_not be_empty
  end

  it "should provide transparent access to the response headers" do
    @page.content_type.should == @page.content_type
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spidr-0.2.1 spec/page_examples.rb
spidr-0.2.0 spec/page_examples.rb