Skip to content

Instantly share code, notes, and snippets.

@jnicklas
Created March 11, 2013 19:43
Show Gist options
  • Save jnicklas/5137053 to your computer and use it in GitHub Desktop.
Save jnicklas/5137053 to your computer and use it in GitHub Desktop.
require "capybara"
html = DATA.read
app = proc { |env| [200, { "Content-Type" => "text/html" }, [html] ] }
sess = Capybara::Session.new(:selenium, app)
sess.visit("/")
__END__
<!doctype html>
<html>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment