Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix mock so test fails as expected

  • Loading branch information...
commit 0120096fc2aaf345a26e5f23dd75f5549a6699f6 1 parent 9c20e67
@twalpole twalpole authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.