Added support for before(:all) and after(:all) #107

Merged
merged 2 commits into from May 1, 2013

Conversation

Projects
None yet
4 participants
@dyba
Contributor

dyba commented Oct 23, 2011

Modified FakeFS::SpecHelpers to have additional module: FakeFS::SpecHelpers::All. Including FakeFS::SpecHelpers::All will turn on FakeFS once before all your examples and then at the end of all your examples will turn it off. Modified comments in the spec_helpers.rb file to reflect the new change. Refactored code in spec_helpers.rb.

Added support for before(:all) and after(:all)
Modified FakeFS::SpecHelpers to have additional module:
FakeFS::SpecHelpers::All. Including FakeFS::SpecHelpers::All will turn
on FakeFS once before all your examples and then at the end of all your
examples will turn it off. Modified comments in the spec_helpers.rb
file to reflect the new change.
@lgierth

This comment has been minimized.

Show comment Hide comment
@lgierth

lgierth Oct 23, 2011

Contributor

Cool stuff!

Contributor

lgierth commented Oct 23, 2011

Cool stuff!

@rue

This comment has been minimized.

Show comment Hide comment
@rue

rue Oct 25, 2011

Collaborator

I like the idea; the specs could use a bit of fleshing out, though? (Plus there's an :each vs. :all typo
there?)

Collaborator

rue commented Oct 25, 2011

I like the idea; the specs could use a bit of fleshing out, though? (Plus there's an :each vs. :all typo
there?)

@dyba

This comment has been minimized.

Show comment Hide comment
@dyba

dyba Oct 25, 2011

Contributor

@rue can you explain what you mean by "fleshing out"? Not sure I understand.

Contributor

dyba commented Oct 25, 2011

@rue can you explain what you mean by "fleshing out"? Not sure I understand.

@smtlaissezfaire smtlaissezfaire merged commit db5ef66 into fakefs:master May 1, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment