Sha256: 3a3b43725235e3895c0d96978c8fffdf850bcbd98db8dfb58d349b3b7658b68a
Contents?: true
Size: 963 Bytes
Versions: 3
Compression:
Stored size: 963 Bytes
Contents
require 'rails_helper' module Stachio describe TemplatesController do routes { Stachio::Engine.routes } describe "routing" do it "routes to #index" do expect(get("/")).to route_to("stachio/templates#index") end it "routes to #new" do expect(get("/new")).to route_to("stachio/templates#new") end it "routes to #show" do expect(get("/1")).to route_to("stachio/templates#show", :id => "1") end it "routes to #edit" do expect(get("/1/edit")).to route_to("stachio/templates#edit", :id => "1") end it "routes to #create" do expect(post("/")).to route_to("stachio/templates#create") end it "routes to #update" do expect(put("/1")).to route_to("stachio/templates#update", :id => "1") end it "routes to #destroy" do expect(delete("/1")).to route_to("stachio/templates#destroy", :id => "1") end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
stachio-0.2.1 | spec/routing/stachio/templates_routing_spec.rb |
stachio-0.2.0 | spec/routing/stachio/templates_routing_spec.rb |
stachio-0.1.0 | spec/routing/stachio/templates_routing_spec.rb |