Module: PriorityTest::RSpec2::ExampleSorter

Defined in:
lib/priority_test/rspec2/example_sorter.rb

Class Method Summary collapse

Class Method Details

.sort(example1, example2) ⇒ Object



4
5
6
7
8
9
# File 'lib/priority_test/rspec2/example_sorter.rb', line 4

def self.sort(example1, example2)
  element1 = PriorityTest::Core::PrioritySortElement.new(example1.full_description)
  element2 = PriorityTest::Core::PrioritySortElement.new(example2.full_description)

  element1 <=> element2
end