Skip to content

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

Description

@catmando
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions