Sha256: 356ea77e39d42ceb3db456e078c2d0d99af389885717f26f3373d7a5643ec020
Contents?: true
Size: 1.12 KB
Versions: 14
Compression:
Stored size: 1.12 KB
Contents
require "spec_helper" describe Flyboy::TasksController, type: :routing do describe "routing" do routes { Flyboy::Engine.routes } it "routes to #index" do get("/tasks").should route_to("flyboy/tasks#index") end it "routes to #new" do get("/tasks/new").should_not route_to("flyboy/tasks#new") end it "routes to #show" do get("/tasks/1").should route_to("flyboy/tasks#show", :id => "1") end it "routes to #edit" do get("/tasks/1/edit").should route_to("flyboy/tasks#edit", :id => "1") end it "routes to #create" do post("/tasks").should route_to("flyboy/tasks#create") end it "routes to #update" do patch("/tasks/1").should route_to("flyboy/tasks#update", :id => "1") end it "routes to #complete" do patch("/tasks/1/complete").should route_to("flyboy/tasks#complete", :id => "1") end it "routes to #snooze" do patch("/tasks/1/snooze").should route_to("flyboy/tasks#snooze", :id => "1") end it "routes to #destroy" do delete("/tasks/1").should route_to("flyboy/tasks#destroy", :id => "1") end end end
Version data entries
14 entries across 14 versions & 1 rubygems