Skip to content

Instantly share code, notes, and snippets.

@avk
Created February 28, 2009 20:10
Show Gist options
  • Save avk/72086 to your computer and use it in GitHub Desktop.
Save avk/72086 to your computer and use it in GitHub Desktop.
describe User, "is created and activated properly" do
before(:each) do
@user = User.new
end
describe "new user from development environment" do
before(:each) do
@user.context = :dev
end
it "should be activated upon creation"
end
describe "new user from web app" do
before(:each) do
@user.context = :web_app
end
it "should send an email activation"
end
describe "new user from web service" do
before(:each) do
@user.context = :web_service
end
it "should send an XML activation response"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment