spec/controllers/popolo/posts_controller_spec.rb in popolo-0.0.2 vs spec/controllers/popolo/posts_controller_spec.rb in popolo-0.0.3
- old
+ new
@@ -4,17 +4,9 @@
before :each do
@routes = Popolo::Engine.routes
@post = FactoryGirl.create :post
end
- describe 'GET index' do
- it 'assigns all posts as @posts' do
- get :index
- assigns(:posts).to_a.should == [@post]
- response.should be_success
- end
- 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