josephwilk / amrita

A polite, well mannered and thoroughly upstanding testing framework for Elixir
201 stars 28 forks source link

new provided syntax #34

Closed josephwilk closed 11 years ago

josephwilk commented 11 years ago

Improve the provided syntax. Feels a little odd having two blocks.

fact "this is a mock" do
  provided [Monkey.banana |> :yum] do
    Monkey.banana |> :yum
  end
end

Suggestion:

fact "this is a mock", :provided [Monkey.banana |> :yum] do
  Monkey.banana |> :yum
end
josephwilk commented 11 years ago

Closed with https://github.com/josephwilk/amrita/commit/3fa6c89a86e3af9ac11643168895bafea0bc5401

josephwilk commented 11 years ago

Removed due to a macro conflict reporting in #39 Now need to re-add this is it does not conflict.