Skip to content

Instantly share code, notes, and snippets.

View defeated's full-sized avatar
💭
I may be slow to respond.

eddie cianci defeated

💭
I may be slow to respond.
View GitHub Profile
outlook.com
1033edge.com
11mail.com
123.com
123box.net
123india.com
123mail.cl
123qwe.co.uk
150ml.com
15meg4free.com
it "should create a new test set" do
expect { @preview_test.save }.should change(user.test_sets, :count).by(1)
@preview_test.test_set.tap do |t|
t.account.should == account
t.user.should == user
t.service.should == email_service
end.should be_valid
end
@defeated
defeated / gist:1975752
Created March 5, 2012 01:11 — forked from dhh/gist:1975644
safer mass assignment from dhh
class PostsController < ActionController::Base
def create
Post.create(post_params)
end
def update
Post.find(params[:id]).update_attributes!(post_params)
end
private