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

Version Path
kdmny-spree-0.0.1 spec/controllers/taxons_controller_spec.rb
spree-0.11.0 spec/controllers/taxons_controller_spec.rb
spree-0.10.2 spec/controllers/taxons_controller_spec.rb
spree-0.10.1 spec/controllers/taxons_controller_spec.rb
spree-0.10.0 spec/controllers/taxons_controller_spec.rb
spree-0.10.0.beta spec/controllers/taxons_controller_spec.rb
spree-enriquez-0.9.4 spec/controllers/taxons_controller_spec.rb
spree-0.9.4 spec/controllers/taxons_controller_spec.rb
spree-0.9.3 spec/controllers/taxons_controller_spec.rb
spree-0.9.2 spec/controllers/taxons_controller_spec.rb
spree-0.9.1 spec/controllers/taxons_controller_spec.rb
spree-0.9.0 spec/controllers/taxons_controller_spec.rb
spree-0.8.4 spec/controllers/taxons_controller_spec.rb
spree-0.8.5 spec/controllers/taxons_controller_spec.rb
spree-0.6.0 spec/controllers/taxons_controller_spec.rb
spree-0.7.0 spec/controllers/taxons_controller_spec.rb
spree-0.7.1 spec/controllers/taxons_controller_spec.rb
spree-0.8.0 spec/controllers/taxons_controller_spec.rb
spree-0.8.1 spec/controllers/taxons_controller_spec.rb
spree-0.8.2 spec/controllers/taxons_controller_spec.rb