Skip to content

Instantly share code, notes, and snippets.

@daniel-nelson
Created October 7, 2011 00:43
Show Gist options
  • Save daniel-nelson/1269140 to your computer and use it in GitHub Desktop.
Save daniel-nelson/1269140 to your computer and use it in GitHub Desktop.
require 'spec_helper'
describe "create an account" do
before(:each) do
visit new_fulluser_registration_path
fill_in('fulluser_account_name', :with => 'peanuts')
fill_in('Email', :with => 'snoopy@peanuts.com')
fill_in('Password', :with => 'mysecret')
fill_in('Password confirmation', :with => 'mysecret')
click_button('Sign up')
end
it "should set the user's password" do
user = User.where(:email => 'snoopy@peanuts.com').first
user.valid_password?('mysecret').should be_true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment