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-2.6.0 test/helpers/router_helper_test.rb
adminpanel-2.5.5 test/helpers/router_helper_test.rb
adminpanel-2.5.4 test/helpers/router_helper_test.rb
adminpanel-2.5.3 test/helpers/router_helper_test.rb
adminpanel-2.5.2 test/helpers/router_helper_test.rb
adminpanel-2.5.1 test/helpers/router_helper_test.rb
adminpanel-2.5.0 test/helpers/router_helper_test.rb