diff --git a/README.md b/README.md index b72ba71..2da14a8 100644 --- a/README.md +++ b/README.md @@ -51,9 +51,21 @@ Breeze is a development dashboard for [Lucky Framework](https://luckyframework.o LuckyTask::Runner.run ``` -5. Run `lucky breeze.install` +5. Add the spec helpers to your `spec/spec_helper.cr`: -6. Run `lucky db.migrate` + ```crystal + require "spec" + require "lucky_flow" + require "../src/app" + # ... + require "breeze/spec_helpers" + + require "./setup/**" + ``` + +6. Run `lucky breeze.install` + +7. Run `lucky db.migrate` ## Usage diff --git a/src/spec_helpers.cr b/src/spec_helpers.cr new file mode 100644 index 0000000..79c1960 --- /dev/null +++ b/src/spec_helpers.cr @@ -0,0 +1,4 @@ +# Use this file to require any code required +# for applications with Breeze to run specs + +require "../db/migrations/**"