Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ It is NOT a wrapper around ExUnit but a completely new testing framework written
* There are two types of expectation syntax:
- `expect` syntax with pipe operator `expect smth1 |> to(eq smth2)` or `is_expected |> to(eq smth)` when `subject` is defined;
- `should` syntax: `smth1 |> should(eq smth2)` or `should eq smth` when `subject` is defined.

##### Note: RSpec syntax `expect(smth1).to eq(smth2)` is deprecated and won't work with OTP 21.
* `before` and `finally` blocks (like RSpec `before` and `after`).
* `let`, `let!` and `subject`.
* Shared examples.
Expand Down
1 change: 1 addition & 0 deletions lib/espec.ex
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ defmodule ESpec do

@shared unquote(args)[:shared] || false
@before_compile ESpec
@compile :tuple_calls

import ESpec.Context

Expand Down
5 changes: 5 additions & 0 deletions spec/dot_syntax_spec.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
defmodule DotSyntaxSpec do
use ESpec, async: true

it do: expect(1 + 1).to eq(2)
end
Loading