Skip to content

Commit

Permalink
Stub call to respond_to?(:empty?) that form_for makes in Rails 4
Browse files Browse the repository at this point in the history
  • Loading branch information
twalpole committed Aug 27, 2012
1 parent 3ff3c08 commit 4bd0330
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/helpers/inputs_helper_spec.rb
Expand Up @@ -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

Expand Down

0 comments on commit 4bd0330

Please sign in to comment.