Sha256: 59c134fe6455820223a8ea25b791c21240acfd31dc5b5c97011a21f5b909d026

Contents?: true

Size: 502 Bytes

Versions: 1

Compression:

Stored size: 502 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/test_helper')
require 'rack/test'


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

  def app
    TableSetter::App
  end

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
table_setter-0.2.12 test/table-setter-app_test.rb