Sha256: 96fdf76b8c8814e5994b22d64d115308e5ec045ec3795f89e09bdfffc9123f42

Contents?: true

Size: 575 Bytes

Versions: 6

Compression:

Stored size: 575 Bytes

Contents

require 'test_helper'

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

  fixtures :all

  def test_get_gallery_childen
    assert_equal 'galleryfiles', get_gallery_children(:gallery)
  end

  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

6 entries across 6 versions & 1 rubygems

Version Path
adminpanel-2.4.3 test/helpers/router_helper_test.rb
adminpanel-2.4.2 test/helpers/router_helper_test.rb
adminpanel-2.4.1 test/helpers/router_helper_test.rb
adminpanel-2.4.0 test/helpers/router_helper_test.rb
adminpanel-2.3.1 test/helpers/router_helper_test.rb
adminpanel-2.3.0 test/helpers/router_helper_test.rb