Sha256: b487733f5f7db3a1fd18d121e218b5b29f39df758a2580bf39eb5f441e2ad809
Contents?: true
Size: 547 Bytes
Versions: 9
Compression:
Stored size: 547 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe ManagedContentsController do before :all do Publication.destroy_all @publication = Publication.create(:name => 'FAQs', :desired_slug => 'faq') @content = @publication.managed_contents.create(:headline => 'foo', :content => 'bar', :desired_slug => 'foo') end it "show action should render show template" do get :show, :publication_slug => 'faq', :content_slug => 'foo' response.should render_template(:show) assigns(:content).should == @content end end
Version data entries
9 entries across 9 versions & 1 rubygems