Sha256: 61a7f2b464e8e7153a73be52342eaff616a87b0b2a3efa56997e0180014341cd

Contents?: true

Size: 987 Bytes

Versions: 9

Compression:

Stored size: 987 Bytes

Contents

require 'test_helper'

class Admin::ConfigurationsControllerTest < ActionController::TestCase
  setup do
    UserSession.create(Factory(:admin_user))
  end

  context "on GET to :index" do
    setup do
      get :index
    end

    should_respond_with :success
    should_render_template "index"

    should "display a Mail Server Settings link" do
      assert_select('a[href=?]', admin_mail_settings_path)
    end

    should "display a Tax Categories link" do
      assert_select 'a[href=?]', admin_tax_categories_path
    end

    should "display a Zones link" do
      assert_select 'a[href=?]', admin_zones_path
    end

    should "display a States link" do
      assert_select 'a[href=?]', admin_country_states_path(214)
    end

    should "display a Payment Methods link" do
      assert_select 'a[href=?]', admin_payment_methods_path
    end

    should "display an Inventory Settings link" do
      assert_select 'a[href=?]', admin_inventory_settings_path
    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
spree-0.11.4 test/functional/admin/configurations_controller_test.rb
spree-0.11.3 test/functional/admin/configurations_controller_test.rb
spree-0.11.2 test/functional/admin/configurations_controller_test.rb
spree-0.11.1 test/functional/admin/configurations_controller_test.rb
spree-0.11.0 test/functional/admin/configurations_controller_test.rb
spree-0.10.2 test/functional/admin/configurations_controller_test.rb
spree-0.10.1 test/functional/admin/configurations_controller_test.rb
spree-0.10.0 test/functional/admin/configurations_controller_test.rb
spree-0.10.0.beta test/functional/admin/configurations_controller_test.rb