Sha256: e4a15b0d3c743bf7fec2e05d1f3e52268c66d74e56c827203e14e71dbf91a546

Contents?: true

Size: 549 Bytes

Versions: 11

Compression:

Stored size: 549 Bytes

Contents

require 'test_helper'

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

  setup do
    Gretel.reset!
    Gretel.suppress_deprecation_warnings = true
  end

  test "show root alone" do
    breadcrumb :root
    assert_equal %{<div class="breadcrumbs"><span class="current">Home</span></div>},
                 breadcrumbs(show_root_alone: true)
  end

  test "deprecated configuration block" do
    assert_raises RuntimeError do
      Gretel::Crumbs.layout do
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
gretel-3.0.5 test/deprecated_test.rb
gretel-3.0.4 test/deprecated_test.rb
gretel-3.0.3 test/deprecated_test.rb
gretel-3.0.2 test/deprecated_test.rb
gretel-3.0.1 test/deprecated_test.rb
gretel-3.0.0 test/deprecated_test.rb
gretel-3.0.0.beta6 test/deprecated_test.rb
gretel-3.0.0.beta5 test/deprecated_test.rb
gretel-3.0.0.beta4 test/deprecated_test.rb
gretel-3.0.0.beta3 test/deprecated_test.rb
gretel-3.0.0.beta2 test/deprecated_test.rb