Sha256: 25c44a9ae01566004a3ad5204272c4cb90c79ed0fe47c4fb1ab2c8f2f916a1e5
Contents?: true
Size: 461 Bytes
Versions: 5
Compression:
Stored size: 461 Bytes
Contents
require 'spec_helper' describe NeighborhoodsController do render_views it 'shows all neighborhoods on index' do neighborhood = create :neighborhood get :index response.should be_ok assigns(:neighborhoods).should == [neighborhood] end it 'shows a single neighborhood' do neighborhood = create :neighborhood get :show, id: neighborhood.id response.should be_ok assigns(:neighborhood).should == neighborhood end end
Version data entries
5 entries across 5 versions & 1 rubygems