Skip to content

Commit

Permalink
fix mock so test fails as expected
Browse files Browse the repository at this point in the history
  • Loading branch information
twalpole committed May 5, 2012
1 parent 9c20e67 commit 0120096
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/inputs/select_input_spec.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@
describe 'for a has_one association' do describe 'for a has_one association' do
before do before do
::Post.stub!(:reflect_on_association).with(:author).and_return do ::Post.stub!(:reflect_on_association).with(:author).and_return do
mock = mock('reflection', :options => {}, :klass => ::Author, :macro => :has_one) mock = mock('reflection', :options => {}, :klass => ::Author, :macro => :has_one, :foreign_key=>'post_id')
mock mock
end end
end end
Expand Down

0 comments on commit 0120096

Please sign in to comment.