Sha256: 504c9afb65d25cb8e52ef690d370ffd1343e07f7e376879180ac67741d7894bd

Contents?: true

Size: 430 Bytes

Versions: 4

Compression:

Stored size: 430 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/'
    last_response.ok?.should be_true
    last_response.body.include?("Failed Banks List").should be_true
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
table_setter-0.2.7 spec/table-setter-app_spec.rb
table_setter-0.2.6 spec/table-setter-app_spec.rb
table_setter-0.2.5 spec/table-setter-app_spec.rb
table_setter-0.2.4 spec/table-setter-app_spec.rb