Sha256: 0f297574d3eea03326d03bd3ae3734bfb66bca96e29a6ca50d8a9e417abf2371

Contents?: true

Size: 473 Bytes

Versions: 27

Compression:

Stored size: 473 Bytes

Contents

require 'test_helper'

class RouterHelperTest < ActionView::TestCase
  include Adminpanel::RouterHelper

  fixtures :all

  def test_resource_parameters
    assert_equal( { path: 'categorias' }, resources_parameters(:categories) )
    assert_equal( { path: 'articulo-espacios-mayusculas-y-acentos' }, resources_parameters(:items) )
  end

  def test_has_fb_share?
    assert_equal false, has_fb_share?(:categories)
    assert_equal true, has_fb_share?(:products)
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
adminpanel-3.6.1 test/helpers/router_helper_test.rb
adminpanel-3.6.0 test/helpers/router_helper_test.rb
adminpanel-3.5.1 test/helpers/router_helper_test.rb
adminpanel-3.5.0 test/helpers/router_helper_test.rb
adminpanel-3.4.7 test/helpers/router_helper_test.rb
adminpanel-3.4.6 test/helpers/router_helper_test.rb
adminpanel-3.4.5 test/helpers/router_helper_test.rb
adminpanel-3.4.4 test/helpers/router_helper_test.rb
adminpanel-3.4.3 test/helpers/router_helper_test.rb
adminpanel-3.4.2 test/helpers/router_helper_test.rb
adminpanel-3.4.1 test/helpers/router_helper_test.rb
adminpanel-3.4.0 test/helpers/router_helper_test.rb
adminpanel-3.3.4 test/helpers/router_helper_test.rb
adminpanel-3.3.3 test/helpers/router_helper_test.rb
adminpanel-3.3.0 test/helpers/router_helper_test.rb
adminpanel-3.2.1 test/helpers/router_helper_test.rb
adminpanel-3.2.0 test/helpers/router_helper_test.rb
adminpanel-3.1.0 test/helpers/router_helper_test.rb
adminpanel-3.0.0 test/helpers/router_helper_test.rb
adminpanel-2.6.1 test/helpers/router_helper_test.rb