Sha256: a33c1aeeee8b21004aa2d3fba028de6576fed6d69ed4e6a002629ff4e6ae4d6a

Contents?: true

Size: 718 Bytes

Versions: 3

Compression:

Stored size: 718 Bytes

Contents

require 'test_helper'

class DeprecatedTest < ActionView::TestCase
  include Gretel::ViewHelpers
  fixtures :all
  helper :application

  setup do
    Gretel.reset!
  end

  test "deprecated configuration block" do
    Gretel.suppress_deprecation_warnings = true
    
    Gretel::Crumbs.layout do
      crumb :deprecated_parent do
        link "Test deprecated", root_path
      end

      crumb :deprecated_child do
        link "Child", about_path
        parent :deprecated_parent
      end
    end

    breadcrumb :deprecated_child
    assert_equal %{<div class="breadcrumbs"><a href="/">Test deprecated</a> &gt; <span class="current">Child</span></div>},
                 breadcrumbs(:autoroot => false)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gretel-2.2.0.rc2 test/deprecated_test.rb
gretel-2.2.0.rc1 test/deprecated_test.rb
gretel-2.1.0 test/deprecated_test.rb