Skip to content

Instantly share code, notes, and snippets.

@willrjmarshall
Created September 30, 2011 02:32
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 willrjmarshall/1252510 to your computer and use it in GitHub Desktop.
Save willrjmarshall/1252510 to your computer and use it in GitHub Desktop.
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