Created
September 30, 2011 02:32
-
-
Save willrjmarshall/1252510 to your computer and use it in GitHub Desktop.
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
def create | |
@broadcast = current_user.broadcasts.create(params[:broadcast]) | |
respond_with @broadcast | |
end | |
it "should fail when the broadcast cannot be created" do | |
post :create, :broadcast => {}, :format => :json | |
response.status.should == 400 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment