Created
December 8, 2011 13:39
-
-
Save westoque/1447016 to your computer and use it in GitHub Desktop.
black box controller spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe MessagesController do | |
describe "POST create" do | |
it "saves the message" do | |
lambda { | |
post :create, :message => { "text" => "a quick brown fox" } | |
}.should change(Message, :count).by(1) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment