Sha256: bcd575c4d498eef61b9034dac32fca3757c24df7f1dac526ba33d88046df5b31

Contents?: true

Size: 490 Bytes

Versions: 2

Compression:

Stored size: 490 Bytes

Contents

require 'spec_helper'

module KnowledgeBase
  describe ArticlesController do
    routes { KnowledgeBase::Engine.routes }

    describe "GET 'show'" do
      it "returns http success" do
        category    = create :category
        article     = create :article
        association = create :category_article_association, category: category, article: article

        get :show, category_id: category.slug, id: article.slug

        response.should be_success
      end
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
knowledge_base-0.1.0 spec/controllers/knowledge_base/articles_controller_spec.rb
knowledge_base-0.0.3 spec/controllers/knowledge_base/articles_controller_spec.rb