Skip to content
Browse files

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

  • Loading branch information...
1 parent 3ff3c08 commit 4bd03304f499044b72ecbf717b3d6f915f357062 @twalpole twalpole committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 spec/helpers/inputs_helper_spec.rb
View
1 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.
Something went wrong with that request. Please try again.