Sha256: cc30208dc143b828bf38d54d7b5a42bcb150cc21db1f6a7ae09c8d7065817734
Contents?: true
Size: 563 Bytes
Versions: 2
Compression:
Stored size: 563 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe ManagedContentsController do render_views 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
editorial_logic-1.1.1 | spec/controllers/managed_contents_controller_spec.rb |
editorial_logic-1.1.0 | spec/controllers/managed_contents_controller_spec.rb |