Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear context variables as well #27

Merged
merged 3 commits into from
May 15, 2017
Merged

Conversation

yuya-takeyama
Copy link
Owner

And wrote usage with RSpec.


Testing

RSpec

It's recommended to clear state of Flagship before the suite and after the each tests.

You can do it by configuring like below:

RSpec.configure do |config|
  config.before(:suite) do
    Flagship.clear_state
  end

  config.after(:each) do
    Flagship.clear_state
  end
end

@yuya-takeyama yuya-takeyama merged commit 3058273 into master May 15, 2017
@yuya-takeyama yuya-takeyama deleted the clear-context-as-well branch May 15, 2017 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant