Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Latest commit

 

History

History
18 lines (16 loc) · 452 Bytes

TODO.markdown

File metadata and controls

18 lines (16 loc) · 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'}
      end
    end
  end
end