Skip to content

Instantly share code, notes, and snippets.

@davidsmalley
Created July 12, 2012 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save davidsmalley/3098294 to your computer and use it in GitHub Desktop.
Save davidsmalley/3098294 to your computer and use it in GitHub Desktop.
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.should be_valid
t.account.should == account
t.user.should == user
t.service.should == email_service
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment