Sha256: b5c01476ddb85eee014f85e55a52a4fb9b9340c6d8f56177e4e628bb12acda2a

Contents?: true

Size: 464 Bytes

Versions: 4

Compression:

Stored size: 464 Bytes

Contents

require 'spec_helper'


describe TableSetter::App, "in the application" do
  include Rack::Test::Methods

  def app
    TableSetter::App
  end


  it "should render the homepage" do
    get '/'
    last_response.body.include?("All Tables").should be_true
  end


  it "should render a table" do
    get '/example_local/'
    last_response.ok?.should be_true
    last_response.body.include?("Browse All Approved Stimulus Highway Projects").should be_true
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
table_setter-0.2.11 spec/table-setter-app_spec.rb
table_setter-0.2.10 spec/table-setter-app_spec.rb
table_setter-0.2.9 spec/table-setter-app_spec.rb
table_setter-0.2.8 spec/table-setter-app_spec.rb