Sha256: 694bff9d5d07acb2fecabba85826162252dea4b8a37eb21cc5396b54bd99db93

Contents?: true

Size: 413 Bytes

Versions: 9

Compression:

Stored size: 413 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'

describe PublicationsController do
  before :all do
    Publication.destroy_all
    @publication = Publication.create(:name => 'FAQs', :desired_slug => 'faq')
  end

  it "show action should render show template" do
    get :show, :publication_slug => 'faq'
    response.should render_template(:show)
    assigns(:publication).should == @publication
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
editorial_logic-1.3.3 spec/controllers/publications_controller_spec.rb
editorial_logic-1.3.2 spec/controllers/publications_controller_spec.rb
editorial_logic-1.3.1 spec/controllers/publications_controller_spec.rb
editorial_logic-1.3.0 spec/controllers/publications_controller_spec.rb
editorial_logic-1.1.6 spec/controllers/publications_controller_spec.rb
editorial_logic-1.1.5 spec/controllers/publications_controller_spec.rb
editorial_logic-1.1.4 spec/controllers/publications_controller_spec.rb
editorial_logic-1.1.3 spec/controllers/publications_controller_spec.rb
editorial_logic-1.1.2 spec/controllers/publications_controller_spec.rb