Skip to content

Instantly share code, notes, and snippets.

@elentok
Created May 25, 2012 16:34
Show Gist options
  • Save elentok/2789081 to your computer and use it in GitHub Desktop.
Save elentok/2789081 to your computer and use it in GitHub Desktop.
RSpec POST create
describe "POST create" do
describe "with valid params" do
it "creates a new ProjectStage" do
expect {
post :create, {:project_stage => valid_attributes}, valid_session
}.to change(ProjectStage, :count).by(1)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment