Skip to content

Instantly share code, notes, and snippets.

View ahawkins's full-sized avatar
💭
🌈🏄🏼‍♂️🤙🏻

Adam Hawkins ahawkins

💭
🌈🏄🏼‍♂️🤙🏻
View GitHub Profile
let(:attributes) { {:email => 'adam@rails.com', :password => 'password'}}
it "should assign the new user as company admin" do
post :create, :user => attributes
user = User.find_by_email! 'adam@rails.com'
user.foo.should be_true
end