Sha256: ddff02aa1caa11baac94d7978422ac95bbaf65278d874a46ba047deb23767719

Contents?: true

Size: 872 Bytes

Versions: 1

Compression:

Stored size: 872 Bytes

Contents

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

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

describe BlueprintsBoy do
  describe "build" do
    it "allows building blueprint" do
      build :apple
      apple.must_equal 'apple'
    end

    it "should not allow to reach blueprints from previous specs" do
      blueprint_data(:apple).must_be_nil
    end

    it "allows building same blueprint in another spec" do
      build :apple
      apple.must_equal 'apple'
    end
  end

  describe "class level set" do
    build :apple

    it "should build blueprints in before filter" do
      apple.must_equal 'apple'
    end
  end

  describe "global" do
    it "should build global blueprints" do
      global_cherry.must_equal 'cherry'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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