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

before(:step) runs after the step executes??? #35

Open
catmando opened this issue May 18, 2018 · 0 comments
Open

before(:step) runs after the step executes??? #35

catmando opened this issue May 18, 2018 · 0 comments

Comments

@catmando
Copy link

RSpec::Steps.steps "Element animation and effects methods", js: true do
  before(:step) do
    puts "running before step @#{Time.now}"
  end
  it "spec 1" do
    puts "i ran spec 1"
  end
  it "spec 2" do
    puts "i ran spec 2"
  end
end

results in:

Capybara starting Puma...
* Version 3.11.4 , codename: Love Song
* Min threads: 0, max threads: 4
* Listening on tcp://127.0.0.1:58590
running before step @2018-05-18 19:12:34 -0400
i ran spec 1
i ran spec 2
  spec 1
running before step @2018-05-18 19:12:34 -0400
  spec 2

Finished in 2.57 seconds (files took 1.43 seconds to load)
2 examples, 0 failures
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

No branches or pull requests

1 participant