Sha256: f4d7ce299ef6e517dc799cda961a6b08c71bd01f8587e3d32a0059a1b93ae330

Contents?: true

Size: 660 Bytes

Versions: 2

Compression:

Stored size: 660 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
  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

2 entries across 2 versions & 1 rubygems

Version Path
gretel-4.0.1 test/gretel_test.rb
gretel-4.0.0 test/gretel_test.rb