I've tried to use espec_phoenix a couple times over the last few days. I follow the instructions in the README, but when I attempt to actually run the specs, I get the error from the title:
** (CompileError) spec/models/food_spec.exs:2: module ESpec.Phoenix.Extend is not loaded and could not be found
(elixir) expanding macro: Kernel.use/2
spec/models/food_spec.exs:2: MealTracker.FoodSpec (module)
expanding macro: ESpec.Phoenix.__using__/1
spec/models/food_spec.exs:2: MealTracker.FoodSpec (module)
(elixir) expanding macro: Kernel.use/2
spec/models/food_spec.exs:2: MealTracker.FoodSpec (module)
The espec_phoenix_extend.ex file is right where the init procedure left it, so I'm not sure why I would be getting this issue.
Hi!
Please ensure you have Code.require_file("spec/phoenix_helper.exs") present in spec_helper.exs
And Code.require_file("spec/espec_phoenix_extend.ex") in phoenix_helper.exs.
I've tried to use espec_phoenix a couple times over the last few days. I follow the instructions in the README, but when I attempt to actually run the specs, I get the error from the title:
The
espec_phoenix_extend.ex
file is right where the init procedure left it, so I'm not sure why I would be getting this issue.