obmarg / ex_unit_fixtures

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

Probably can't import fixtures using ExUnit.TestCase and define them locally. #4

Closed obmarg closed 8 years ago

obmarg commented 8 years ago

As documented here: https://github.com/obmarg/ex_unit_fixtures/commit/37cf4fb3024abc4a03aa551fb455f4df9f7f6e90 it's possible to use ExUnit.CaseTemplate to import some fixtures. However, I'm pretty sure this won't play too well with defining fixtures locally to a test file.

It'd be good to test this to be sure, and then provide a way of making it work.

obmarg commented 8 years ago

This is dealt with in #7 - it's no longer recommended to use ExUnit.CaseTemplate to import fixtures, and the new ExUnitFixtures.FixtureModule code handles this case.

obmarg commented 8 years ago

Fixed in #7