Sha256: 96e5277191db56e14d1eb8967803a4cb43b7d462cc8e676cbc319be612d3400f

Contents?: true

Size: 347 Bytes

Versions: 5

Compression:

Stored size: 347 Bytes

Contents

require_relative "minitest_helper"

describe BlackBook do
  before do
    BlackBook.remove_class_variable :@@config if BlackBook.class_variable_defined? :@@config
  end

  it "should yield a configuration object to block" do
    BlackBook.configure do |config|
      config.foo = "bar"
    end

    BlackBook.config.foo.must_equal "bar"
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
black_book-0.0.5 test/black_book_test.rb
black_book-0.0.4 test/black_book_test.rb
black_book-0.0.3 test/black_book_test.rb
black_book-0.0.2 test/black_book_test.rb
black_book-0.0.1 test/black_book_test.rb