Skip to content

Instantly share code, notes, and snippets.

View brandoncordell's full-sized avatar

Brandon Cordell brandoncordell

View GitHub Profile
/* ACL Tables */
CREATE TABLE acos (
id INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY,
parent_id INT DEFAULT NULL,
model VARCHAR(255) DEFAULT '',
foreign_key INT UNSIGNED DEFAULT NULL,
alias VARCHAR(255) DEFAULT '',
lft INT DEFAULT NULL,
rght INT DEFAULT NULL
@user = User.new({
email: "user#{n}@7ey.es",
first_name: Forgery(:name).first_name,
last_name: Forgery(:name).last_name,
password: 'letmein',
remember_me: true,
})
## Cucumber Scenario
@wip
Scenario: Login with correct details
Given a user named "brent" exists
When I go to login
And I fill in "Username" with "brent"
And I fill in "Password" with "screech"
And I press "Log In"
# And show me the page