-
-
Notifications
You must be signed in to change notification settings - Fork 766
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3093 from makicamel/fix-non_failing_example_ids
Fixed rspec --bisect to sort ids_to_run as the original order
- Loading branch information
Showing
9 changed files
with
57 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
spec/rspec/core/resources/bisect/consistently_ordered_1_specs.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Deliberately named _specs.rb to avoid being loaded except when specified | ||
|
||
RSpec.describe "Order1" do | ||
it("passes") { expect(1).to eq 1 } | ||
end |
9 changes: 9 additions & 0 deletions
9
spec/rspec/core/resources/bisect/consistently_ordered_2_specs.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Deliberately named _specs.rb to avoid being loaded except when specified | ||
|
||
require "rspec/core/resources/bisect/frieren_quote" | ||
|
||
RSpec.describe "Order2" do | ||
before { FrierenQuote.change } | ||
|
||
it("passes") { expect(1).to eq 1 } | ||
end |
7 changes: 7 additions & 0 deletions
7
spec/rspec/core/resources/bisect/consistently_ordered_3_specs.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Deliberately named _specs.rb to avoid being loaded except when specified | ||
|
||
require "rspec/core/resources/bisect/frieren_quote" | ||
|
||
RSpec.describe "Order3" do | ||
it("fails order-dependency") { expect(FrierenQuote.one).to eq "That is what hero Himmel would have done." } | ||
end |
5 changes: 5 additions & 0 deletions
5
spec/rspec/core/resources/bisect/consistently_ordered_4_specs.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Deliberately named _specs.rb to avoid being loaded except when specified | ||
|
||
RSpec.describe "Order4" do | ||
it("passes") { expect(1).to eq 1 } | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
class FrierenQuote | ||
class << self | ||
def one | ||
@@one ||= "That is what hero Himmel would have done." | ||
end | ||
|
||
def change | ||
@@one = "The greatest enjoyment comes only during the pursuit of magic, you know." | ||
end | ||
end | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters