We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7909a8c commit 2e2e38dCopy full SHA for 2e2e38d
spec/unit/resource/routes_spec.rb
@@ -16,10 +16,16 @@ def config(options = {})
16
it "should return the route prefix" do
17
config.route_prefix.should == "admin"
18
end
19
+
20
it "should return the route collection path" do
21
config.route_collection_path.should == "/admin/categories"
22
23
24
+ it "should return the route instance path" do
25
+ category = Category.new { |c| c.id = 123 }
26
+ config.route_instance_path(category).should == "/admin/categories/123"
27
+ end
28
29
context "when in the root namespace" do
30
let(:config){ application.register Category, :namespace => false}
31
it "should have a nil route_prefix" do
0 commit comments