Sha256: 0c4ca75cd183fe95cee44f00c5816709a4dafcfcb5cc7739d9a62a788072bc70

Contents?: true

Size: 508 Bytes

Versions: 1

Compression:

Stored size: 508 Bytes

Contents

require 'bundler/setup'
require 'minitest/autorun'
require 'blueprints_boy'

BlueprintsBoy.enable do |config|
  config.root = File.dirname(__FILE__)
  config.global = :global_cherry
end

class TestMinitest < MiniTest::Test
  def test_build
    build :apple
    assert_equal 'apple', apple
  end

  def test_clearup
    assert_nil blueprint_data(:apple)
  end

  def test_build_again
    build :apple
    assert_equal 'apple', apple
  end

  def test_global
    assert_equal 'cherry', global_cherry
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blueprints_boy-1.0.0 integration/minitest/test_minitest.rb