Sha256: 6a16d5e90f80ccf0c345e9856bfb9fe3cbccb7a8a01d56149ec47837b2086a9d
Contents?: true
Size: 1.43 KB
Versions: 3
Compression:
Stored size: 1.43 KB
Contents
require "spec_helper" describe Brief::Server::Route do it "routes to the browse handler" do expect(handler_for("/browse/epics")).to eq(Brief::Server::Handlers::Browse) end it "routes to the create handler" do expect(handler_for("/create/epics/new.html.md")).to eq(Brief::Server::Handlers::Modify) end it "routes to the update handler" do expect(handler_for("/update/epics/new.html.md")).to eq(Brief::Server::Handlers::Modify) end it "routes to the remove handler" do expect(handler_for("/remove/epics/new.html.md")).to eq(Brief::Server::Handlers::Modify) end it "routes to the actions handler" do expect(handler_for("/actions/custom_action/epics/epic.html.md")).to eq(Brief::Server::Handlers::Action) end it "routes to the schema browse handler" do expect(handler_for("/schema")).to eq(Brief::Server::Handlers::Schema) end it "routes to the schema details handler" do expect(handler_for("/schema/epic")).to eq(Brief::Server::Handlers::Schema) end it "routes to the view content handler" do expect(handler_for("/view/content/epics/epic.html.md")).to eq(Brief::Server::Handlers::Show) end it "routes to the view rendered handler" do expect(handler_for("/view/rendered/epics/epic.html.md")).to eq(Brief::Server::Handlers::Show) end it "routes to the view details handler" do expect(handler_for("/view/details/epics/epic.html.md")).to eq(Brief::Server::Handlers::Show) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
brief-1.4.4 | spec/lib/brief/server/route_spec.rb |
brief-1.4.2 | spec/lib/brief/server/route_spec.rb |
brief-1.4.1 | spec/lib/brief/server/route_spec.rb |