Sha256: da432e0c943efaf57cc4fcefaed8ce13b9de3283ab3f54e3359f45b8e975fdc6

Contents?: true

Size: 473 Bytes

Versions: 4

Compression:

Stored size: 473 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/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.3 spec/table-setter-app_spec.rb
table_setter-0.2.2 spec/table-setter-app_spec.rb
table_setter-0.2.1 spec/table-setter-app_spec.rb
table_setter-0.2.0 spec/table-setter-app_spec.rb