Sha256: c324473829c988a4464e3f574bda35bce9fd3b2299a0df8a0e3cc13be33b9636
Contents?: true
Size: 414 Bytes
Versions: 102
Compression:
Stored size: 414 Bytes
Contents
context "create action" do should "render new template when model is invalid" do <%= class_name %>.any_instance.stubs(:valid?).returns(false) post :create assert_template 'new' end should "redirect when model is valid" do <%= class_name %>.any_instance.stubs(:valid?).returns(true) post :create assert_redirected_to <%= item_path_for_test('url') %> end end
Version data entries
102 entries across 71 versions & 13 rubygems