Sha256: 1de1107e9135889d6af4fca2544d5304e940f49ba10ed7ec76267ef87c1811ca
Contents?: true
Size: 465 Bytes
Versions: 2
Compression:
Stored size: 465 Bytes
Contents
require 'spec_helper' module KnowledgeBase describe CategoriesController do routes { KnowledgeBase::Engine.routes } describe "GET 'index'" do it "returns http success" do get :index response.should be_success end end describe "GET 'show'" do it "returns http success" do category = create :category get :show, id: category.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/categories_controller_spec.rb |
knowledge_base-0.0.3 | spec/controllers/knowledge_base/categories_controller_spec.rb |