Permalink
Browse files

Updated to handle the supplied seed (RSpec 2.8)

  • Loading branch information...
1 parent 5641608 commit 2d340c315d7e444e316fc1f846d9a9c21007a8b5 @andrewtimberlake committed Jan 25, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 lib/process_reporter.rb
  2. +1 −1 lib/selenium-runner.rb
  3. +1 −1 selenium-runner.gemspec
@@ -4,12 +4,12 @@ def initialize(reporter)
@process_formatter = ProcessFormatter.new
end
- def report(count)
+ def report(count, seed=nil)
start(count)
begin
yield self
ensure
- finish
+ finish(seed)
end
end
@@ -34,7 +34,7 @@ def self.run(args)
browsers = [:firefox, :chrome]
browsers = [:firefox]
- reporter.report(world.example_count) do |reporter|
+ reporter.report(world.example_count, configuration.randomize? ? configuration.seed : nil) do |reporter|
begin
configuration.run_hook(:before, :suite)
mutex = Mutex.new
@@ -11,6 +11,6 @@ Gem::Specification.new do |s|
s.rdoc_options = ["--charset=UTF-8"]
s.require_path = "lib"
- s.add_runtime_dependency "rspec"
+ s.add_runtime_dependency "rspec", ">= 2.8.0"
s.add_runtime_dependency "selenium-webdriver"
end

0 comments on commit 2d340c3

Please sign in to comment.