Skip to content

Commit

Permalink
Fixed stub missing after retrival from database.
Browse files Browse the repository at this point in the history
  • Loading branch information
gwagener committed May 2, 2014
1 parent 03925d1 commit e743309
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/features/refinery/portfolio/items_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module Portfolio
before(:each) do
@gallery = FactoryGirl.create(:gallery, :title => "My Gallery")
@galleried_item = FactoryGirl.create(:item, :gallery_id => @gallery.id, :image_id => 23)
@galleried_item.stub(:image).and_return(@image)
Item.any_instance.stub(:image).and_return(@image)
@gallery.stub(:items).and_return([@galleried_item])
Gallery.stub(:find).and_return(@gallery)
end
Expand Down

0 comments on commit e743309

Please sign in to comment.