Skip to content

Commit

Permalink
Adding new spec helpers file (#42)
Browse files Browse the repository at this point in the history
* Adding new spec helpers file. This makes integrating with your app specs easier. Updated README. Fixes #21

* going back to explicit numbering in the README. It seems to be resetting possibly due to the code blocks between the list items...
  • Loading branch information
jwoertink authored May 14, 2021
1 parent b30933a commit 280c52a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 4 additions & 0 deletions src/spec_helpers.cr
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Use this file to require any code required
# for applications with Breeze to run specs

require "../db/migrations/**"

0 comments on commit 280c52a

Please # to comment.