Sha256: e18a7b96f7a1d6ddf43c7fde8aa5720a2681df9a16f010722b9c6c0661c67506

Contents?: true

Size: 484 Bytes

Versions: 10

Compression:

Stored size: 484 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

10 entries across 10 versions & 1 rubygems

Version Path
table_setter-0.1.11 spec/table-setter-app_spec.rb
table_setter-0.1.10 spec/table-setter-app_spec.rb
table_setter-0.1.9 spec/table-setter-app_spec.rb
table_setter-0.1.8 spec/table-setter-app_spec.rb
table_setter-0.1.7 spec/table-setter-app_spec.rb
table_setter-0.1.6 spec/table-setter-app_spec.rb
table_setter-0.1.5 spec/table-setter-app_spec.rb
table_setter-0.1.4 spec/table-setter-app_spec.rb
table_setter-0.1.3 spec/table-setter-app_spec.rb
table_setter-0.1.2 spec/table-setter-app_spec.rb