Sha256: 8e7c22b5e5c5b5920d55f45eece9268181fae1f290a4fc2f3ff48486ece7b90f

Contents?: true

Size: 554 Bytes

Versions: 4

Compression:

Stored size: 554 Bytes

Contents

# encoding: utf-8
require 'test_helper'

class RedisDictionaryTest < ActiveSupport::TestCase

  test "should allow developers to set configurations with a block" do
    initial_value = RedisDictionary.configuration.layout
    RedisDictionary.configure do |config|
      config.layout = "custom_layout_developer"
    end
    user_set_value = RedisDictionary.configuration.inline_main_app_named_routes
    assert_not_equal initial_value, user_set_value
  end

  def teardown
    RedisDictionary.configure do |config|
      config.inspect
    end
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
redis_dictionary-1.0.2 test/redis_dictionary_test.rb
redis_dictionary-1.0.1 test/redis_dictionary_test.rb
redis_dictionary-1.0.0 test/redis_dictionary_test.rb
redis_dictionary-0.9.9 test/redis_dictionary_test.rb