Sha256: 14afcfe87b92e8aa59c8d73d8c9c16354b2233180b0b101c4a64fc756d2671b4

Contents?: true

Size: 611 Bytes

Versions: 1

Compression:

Stored size: 611 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")],
                 Gretel.breadcrumb_paths[-2..-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

1 entries across 1 versions & 1 rubygems

Version Path
gretel-3.0.3 test/gretel_test.rb