Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Home

soveran edited this page · 5 revisions
Clone this wiki locally

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 "cuba/test"
require "app"

scope do
  test "Homepage" do
    visit "/"

    assert has_content?("Hello world!")
  end
end

Run via cutest app_test.rb

Something went wrong with that request. Please try again.