Sha256: 700a440ce40e1b91f088b2be574a6a0ed11c529d67b8b764754ff7ce7fc70d7c

Contents?: true

Size: 353 Bytes

Versions: 1

Compression:

Stored size: 353 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
popolo-0.0.3 spec/controllers/popolo/posts_controller_spec.rb