Skip to content
This repository

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.