Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (16 sloc) 452 Bytes

To Do

  • raise an error when updated w/ wrong attributes
  • raise error when no attributes are updated
  • ask the frameworks to verify their own mock expectations
  • use a symbol for the model instead of :params
describe ThingsController do
  describe "POST create" do
    it "creates a new post" do
      stubbing(Thing, :thing => {'these' => 'params'}) do
        post :create, :thing => {'these' => 'params'}
Jump to Line
Something went wrong with that request. Please try again.