obmarg / ex_unit_fixtures

A library for defining modular dependencies (fixtures) for ExUnit tests.
MIT License
13 stars 5 forks source link

Module fixtures now only created once (Fixes #30) #32

Closed obmarg closed 8 years ago

obmarg commented 8 years ago

Prior to this change, the create_fixtures function wasn't making any decisions about which fixtures it needed to actually create, and was just assuming that it should create all the fixtures in the dep chain.

This was incorrect - when creating test fixtures, module fixtures should have already been created, so should not need to be created again.

This fixes that issue, and adds a test to make sure that it doesn't happen again.