Skip to content

Instantly share code, notes, and snippets.

@arjunatombud
arjunatombud / gist:2784244
Created May 24, 2012 21:07
Code snippet for simple RSpec test
require 'spec_helper'
include Capybara::DSL
describe "user registration", :js => true, :driver => :selenium, :type => :request do
it "allows new users to register with an email address and password" do
puts Capybara.save_and_open_page_path.to_s
visit "http://10.10.10.96:8080"
click_on "Sign In"