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

Version Path
nubis_rails_boilerplate-0.0.11 skeletons/real_estate_app/spec/controllers/neighborhoods_controller_spec.rb
nubis_rails_boilerplate-0.0.10 skeletons/real_estate_app/spec/controllers/neighborhoods_controller_spec.rb
nubis_rails_boilerplate-0.0.9 skeletons/real_estate_app/spec/controllers/neighborhoods_controller_spec.rb
nubis_rails_boilerplate-0.0.8 skeletons/real_estate_app/spec/controllers/neighborhoods_controller_spec.rb
nubis_rails_boilerplate-0.0.7 skeletons/real_estate_app/spec/controllers/neighborhoods_controller_spec.rb