Sha256: bfda1ffe72d7cfc706bb41858ba3d3c175b7dc8c15fcf651d4247b216e5f7568
Contents?: true
Size: 1.03 KB
Versions: 21
Compression:
Stored size: 1.03 KB
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe TaxonsController do describe "Nested taxons route recognition" do it "should generate params { :controller => 'taxons', action => 'show', id => ['categories'], } from GET /t/categories/" do params_from(:get, "/t/categories/").should == {:controller => "taxons", :action => "show", :id => ['categories']} end it "should generate params { :controller => 'taxons', action => 'show', id => ['categories', 'clothing'], } from GET /t/categories/clothing/" do params_from(:get, "/t/categories/clothing/").should == {:controller => "taxons", :action => "show", :id => ['categories', 'clothing']} end it "should generate params { :controller => 'taxons', action => 'show', id => ['categories', 'clothing', 'shirts'], } from GET /t/categories/clothing/shirts" do params_from(:get, "/t/categories/clothing/shirts/").should == {:controller => "taxons", :action => "show", :id => ['categories', 'clothing', 'shirts']} end end end
Version data entries
21 entries across 21 versions & 3 rubygems