Skip to content

Instantly share code, notes, and snippets.

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