Skip to content
Browse files

Rev tests

  • Loading branch information...
1 parent 7fce9a8 commit 6cf128557c8c27fc5801648a846bb36504ee211d Bantik committed Feb 25, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 spec/presenter_spec.rb
View
6 spec/presenter_spec.rb
@@ -50,10 +50,10 @@ class Album
before do
@ar_musician = ::Musician.new(:id => 1, :name => 'Johnny Cash', :rating => 'Good', :alive => false)
- ::Musician.stub(:where) { @ar_musician }
+ ::Musician.stub(:where) { [@ar_musician] }
@ar_birthplace = ::Birthplace.new(:id => 1, :city => 'Kingsland', :state => 'Arkansas')
- ::Birthplace.stub(:where) { @ar_birthplace }
+ ::Birthplace.stub(:where) { [@ar_birthplace] }
end
@@ -125,7 +125,7 @@ class Album
it 'initializes the associated object finding by a specified key' do
@ar_album = ::Album.new(:id => 1, :name => 'Greatest Hits')
- ::Album.stub(:where) { @ar_album }
+ ::Album.stub(:where) { [@ar_album] }
album = MyApi::Album.new(:name => 'Greatest Hits')
album.id.should == 1
end

0 comments on commit 6cf1285

Please sign in to comment.
Something went wrong with that request. Please try again.