Sha256: a409cbe88eaa3c8b990e8b736d9eed0c9da21d6e9d70b75cf24c5e71794e7ee9

Contents?: true

Size: 416 Bytes

Versions: 5

Compression:

Stored size: 416 Bytes

Contents

require 'spec_helper'

describe PropertiesController do
  render_views 

  it 'shows all properties on index' do
    property = create :property
    get :index
    response.should be_ok
    assigns(:properties).should == [property]
  end
  
  it 'shows a single property' do
    property = create :property
    get :show, id: property.id
    response.should be_ok
    assigns(:property).should == property
  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/properties_controller_spec.rb
nubis_rails_boilerplate-0.0.10 skeletons/real_estate_app/spec/controllers/properties_controller_spec.rb
nubis_rails_boilerplate-0.0.9 skeletons/real_estate_app/spec/controllers/properties_controller_spec.rb
nubis_rails_boilerplate-0.0.8 skeletons/real_estate_app/spec/controllers/properties_controller_spec.rb
nubis_rails_boilerplate-0.0.7 skeletons/real_estate_app/spec/controllers/properties_controller_spec.rb