Skip to content

Instantly share code, notes, and snippets.

@wacko

wacko/app.rb

Created May 14, 2015
Embed
What would you like to do?
Cuba basic test
require 'cuba'
class MyApp < Cuba
define do
on root do
res.write "it works!"
end
end
end
require "cuba/capybara"
require "./app"
Capybara.app = MyApp
scope do
test "root" do
visit "/"
assert has_content?("it works!")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.