Sha256: 55438949fb6f9ef0f718f8cf749f73b0e4b15403f6efb914292635267ec4276e

Contents?: true

Size: 603 Bytes

Versions: 5

Compression:

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

5 entries across 5 versions & 1 rubygems

Version Path
gretel-3.0.2 test/gretel_test.rb
gretel-3.0.1 test/gretel_test.rb
gretel-3.0.0 test/gretel_test.rb
gretel-3.0.0.beta6 test/gretel_test.rb
gretel-3.0.0.beta5 test/gretel_test.rb