Sha256: 6383aa442d030fab14801c5c395c7d09c1f0ee6d81afe1ee583fb150780c10b9

Contents?: true

Size: 570 Bytes

Versions: 6

Compression:

Stored size: 570 Bytes

Contents

require 'test_helper'

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

  fixtures :all

  def test_get_gallery_childen
    assert_equal 'photos', get_gallery_children(:products)
  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.2.5 test/helpers/router_helper_test.rb
adminpanel-2.2.4 test/helpers/router_helper_test.rb
adminpanel-2.2.3 test/helpers/router_helper_test.rb
adminpanel-2.2.2 test/helpers/router_helper_test.rb
adminpanel-2.2.1 test/helpers/router_helper_test.rb
adminpanel-2.2.0 test/helpers/router_helper_test.rb