Sha256: 9668c4521cdebb157bac80a83aee3a61b22321f020720d98136457151270c969

Contents?: true

Size: 429 Bytes

Versions: 2

Compression:

Stored size: 429 Bytes

Contents

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

describe PublicationsController do
  render_views

  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

2 entries across 2 versions & 1 rubygems

Version Path
editorial_logic-1.1.1 spec/controllers/publications_controller_spec.rb
editorial_logic-1.1.0 spec/controllers/publications_controller_spec.rb