Sha256: 94a0de3f8985292692ae60cfa3fe10b755472d9ee53ce8f59e4002d8dc889a96

Contents?: true

Size: 564 Bytes

Versions: 4

Compression:

Stored size: 564 Bytes

Contents

require 'test_helper'

class ProductsControllerTest < ActionController::TestCase
  context "on get to :index" do
    setup do
      get :index
    end
    should_respond_with :success
    should_not_set_the_flash    
  end
  
  context "with a Taxonomy without a root Taxon" do
    setup do
      taxonomy = Factory(:taxonomy)
      taxonomy2 = Factory(:taxonomy)
      taxonomy2.root.destroy
      get :index
    end
    should_respond_with :success
    should "render only one Taxonomy" do
      assert_select "#taxonomies .navigation-list li"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree-0.11.4 test/functional/products_controller_test.rb
spree-0.11.3 test/functional/products_controller_test.rb
spree-0.11.2 test/functional/products_controller_test.rb
spree-0.11.1 test/functional/products_controller_test.rb