Sha256: e00e8e8c682b51fcfebac5a8573c3a80d3b18fb2953005a949dc54467660e333

Contents?: true

Size: 674 Bytes

Versions: 7

Compression:

Stored size: 674 Bytes

Contents

require 'spec/helper'
require 'example/link'

describe 'example/link' do
  behaves_like :rack_test

  should 'have index on Linking' do
    get('/').body.should == 'Index links to <a href="/help">Help?</a>'
  end

  should 'have help on Linking' do
    get('/help').body.should ==
      "Help links to <a href=\"/link_to/another\">A Different Node</a>"
  end

  should 'have another on Different' do
    get('/link_to/another').body.
      should == "<a href=\"/link_to/and/deeper\">Another links even deeper</a>"
  end

  should 'have and__deeper on Different' do
    get('/link_to/and/deeper').body.
      should == "<a href=\"/index\">Back to Linking Node</a>"
  end
end

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
manveru-innate-2009.06.12 spec/example/link.rb
manveru-innate-2009.06 spec/example/link.rb
rjspotter-innate-2009.06.29 spec/example/link.rb
rjspotter-innate-2009.06.30 spec/example/link.rb
rjspotter-innate-2009.06.31 spec/example/link.rb
innate-2009.06 spec/example/link.rb
innate-2009.06.12 spec/example/link.rb