forked from nyarly/rspec-steps
-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Given spec/features/test_spec.rb
require 'rails_helper'
require 'rspec-steps'
RSpec::Steps.steps "why are these steps done in random order?" do
it "step 1" do
expect("a").to eq("a")
end
it "step 2" do
expect("a").to eq("a")
end
it "step 3" do
expect("a").to eq("a")
end
it "step 4" do
expect("a").to eq("a")
end
end
running rspec spec/features/test_spec.rb
twice gives:
why are these steps done in random order?
step 1
step 4
step 3
step 2
Finished in 0.09078 seconds (files took 2.48 seconds to load)
4 examples, 0 failures
Randomized with seed 57459
and then:
why are these steps done in random order?
step 2
step 4
step 1
step 3
Finished in 0.08662 seconds (files took 2.5 seconds to load)
4 examples, 0 failures
Randomized with seed 39988
Metadata
Metadata
Assignees
Labels
No labels