Permalink
Browse files

Stub call to respond_to?(:empty?) that form_for makes in Rails 4

  • Loading branch information...
twalpole committed Aug 27, 2012
1 parent 3ff3c08 commit 4bd03304f499044b72ecbf717b3d6f915f357062
Showing with 1 addition and 0 deletions.
  1. +1 −0 spec/helpers/inputs_helper_spec.rb
@@ -57,6 +57,7 @@
before do
@new_post.stub!(:respond_to?).and_return(true, true)
+ @new_post.stub!(:respond_to?).with(:empty?).and_return(false)
@new_post.stub!(:author).and_return(@bob)
end

0 comments on commit 4bd0330

Please sign in to comment.