Sha256: f5c3932577f609b470e310fcafd6af7501ba59134212723ab2105ceabac6bfa8

Contents?: true

Size: 393 Bytes

Versions: 7

Compression:

Stored size: 393 Bytes

Contents

require 'spec/helper'
require 'example/provides'

describe 'examples/provide' do
  behaves_like :rack_test

  it 'provides YAML representation' do
    get '/list.yaml'
    last_response.body.should == ARTICLES.to_yaml
    last_response['Content-Type'].should == 'text/yaml'

    get '/list'
    last_response.body.should == ''
    last_response['Content-Type'].should == 'text/html'
  end
end

Version data entries

7 entries across 7 versions & 3 rubygems

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