Sha256: b3dfb15d208aafec4aedd36ab77eda56dc36a954e1104064b79878468beb3798

Contents?: true

Size: 452 Bytes

Versions: 12

Compression:

Stored size: 452 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.response['Content-Type']
  end

  it "should allow content-types" do
    @page.content_types.should_not be_empty
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
spidr_epg-1.0.0 spec/page_examples.rb
spidr-0.4.1 spec/page_examples.rb
spidr-0.4.0 spec/page_examples.rb
spidr-0.3.2 spec/page_examples.rb
spidr-0.3.1 spec/page_examples.rb
spidr-0.3.0 spec/page_examples.rb
spidr-0.2.7 spec/page_examples.rb
spidr-0.2.6 spec/page_examples.rb
spidr-0.2.5 spec/page_examples.rb
spidr-0.2.4 spec/page_examples.rb
spidr-0.2.3 spec/page_examples.rb
spidr-0.2.2 spec/page_examples.rb