Skip to content
This repository has been archived by the owner on May 27, 2019. It is now read-only.

nicer mech integration #8

Open
benmmurphy opened this issue Dec 26, 2011 · 0 comments
Open

nicer mech integration #8

benmmurphy opened this issue Dec 26, 2011 · 0 comments

Comments

@benmmurphy
Copy link
Contributor

we should have a thing that just automatically unloads all the mechs you have defined in a before or in an example.

for example

describe("foo", fun() ->
  before_each(fun() ->
    %load mech 1
  end),

  it("should do stuff", fun() ->
  end),

  describe("nested", fun() ->
    before_each(fun() ->
      % load mech 2
    end),
    it("should do more stuff", fun() ->
    end),
  end)
end)

is converted to

load mech 1
run "should do stuff"
unload mech 1

load mech 1
load mech 2
run "should do more stuff"
unload mech 2
unload mech 1

we should probably provide an option to auto-verify as well.

not sure if mech already has something to make this easy...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant