Browse files

fix mock so test fails as expected

  • Loading branch information...
1 parent 9c20e67 commit 0120096fc2aaf345a26e5f23dd75f5549a6699f6 @twalpole twalpole committed May 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/inputs/select_input_spec.rb
View
2 spec/inputs/select_input_spec.rb
@@ -320,7 +320,7 @@
describe 'for a has_one association' do
before 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
end
end

0 comments on commit 0120096

Please sign in to comment.