Skip to content

Commit

Permalink
test fix for 3c2772d
Browse files Browse the repository at this point in the history
  • Loading branch information
justinfrench committed Jul 11, 2013
1 parent 3c2772d commit 0b4cd64
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions spec/support/custom_macros.rb
Expand Up @@ -258,11 +258,7 @@ def it_should_apply_error_logic_for_input_type(type)

def it_should_call_find_on_association_class_when_no_collection_is_provided(as)
it "should call find on the association class when no collection is provided" do
if Formtastic::Util.rails3?
::Author.should_receive(:all)
else
::Author.should_receive(:where)
end
::Author.should_receive(:where)

concat(semantic_form_for(@new_post) do |builder|
concat(builder.input(:author, :as => as))
Expand Down

0 comments on commit 0b4cd64

Please sign in to comment.