Skip to content

Instantly share code, notes, and snippets.

View dfl's full-sized avatar

David Löwenfels dfl

View GitHub Profile
# example unit test context using should_change and should_not_change
context "Given a user" do
setup do
@user = create_user
end
context "when sent initials with a hyphen and lower case" do
setup do
@user.update_attributes!( :first_name => "Jason", :last_name => "happy-Klein" )