Skip to content

Instantly share code, notes, and snippets.

View webdevotion's full-sized avatar

Bram Plessers webdevotion

View GitHub Profile
Feature: Signing in
In order to use the site
As a user
I want to be able to sign in
Scenario: Signing in via confirmation
Given there are the following users:
| email | password | confirm_user |
| [email protected] | password | false |
And "[email protected]" opens the email with subject "Confirmation instructions"
@webdevotion
webdevotion / bacon.rb
Created December 1, 2010 15:13
working code for the "Rails 3 in action" ebook ( chapter 2 - section 2.3.1 )
class Bacon
attr_accessor :expired
def edible?
!expired
end
def expired!
self.expired = true
end