Skip to content
benalavi edited this page Mar 16, 2011 · 25 revisions

Welcome to the cuba wiki!

Testing

Example of integration testing a simple Cuba application in app.rb with cutest and capybara:

app_test.rb

require "cutest"
require "capybara/dsl"
require "app"

Capybara.app = Cuba
extend Capybara

test "should display hello world" do
  visit "/"
  assert has_content?("Hello World")
end

Run via cutest app_test.rb

Clone this wiki locally