Sha256: ee543074c27ea5576bafd9fa85f807fa8e1f903984b4bdb8391d969cccca2b8e

Contents?: true

Size: 709 Bytes

Versions: 8

Compression:

Stored size: 709 Bytes

Contents

require 'test_helper'

class GretelTest < ActiveSupport::TestCase
  setup do
    Gretel.reset!
  end

  test "defaults" do
    assert_equal [Rails.root.join("config", "breadcrumbs.rb"),
                  Rails.root.join("config", "breadcrumbs", "**", "*.rb"),
                  Rails.root.join("app", "views", "breadcrumbs", "**", "*.rb")],
                 Gretel.breadcrumb_paths[-3..-1]
    assert_equal ["development"], Gretel.reload_environments
    assert !Gretel.suppress_deprecation_warnings?
  end

  test "configuration block" do
    Gretel.configure do |config|
      config.reload_environments << "staging"
    end

    assert_equal ["development", "staging"], Gretel.reload_environments
  end
end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
dat_gretel-4.0.1 test/gretel_test.rb
gretel-lite-3.0.10 test/gretel_test.rb
gretel-3.0.9 test/gretel_test.rb
gretel-3.0.8 test/gretel_test.rb
gretel-3.0.7 test/gretel_test.rb
gretel-3.0.6 test/gretel_test.rb
gretel-3.0.5 test/gretel_test.rb
gretel-3.0.4 test/gretel_test.rb