require 'spec_helper' describe Popolo::PostsController do before :each do @routes = Popolo::Engine.routes @post = FactoryGirl.create :post end describe 'GET show' do it 'assigns the requested post as @post' do get :show, id: @post.id.to_s assigns(:post).should == @post response.should be_success end end end