Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
grosser committed Oct 4, 2015
1 parent 104feed commit 2d17df4
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion lib/parallel_tests/cucumber/runner.rb
Expand Up @@ -27,7 +27,7 @@ def summarize_results(results)
end

def command_with_seed(cmd, seed)
cmd = cmd.sub(/\s--order random(:\d*){0,1}/, '')
cmd = cmd.sub(/\s--order random(:\d*)?/, '')

This comment has been minimized.

Copy link
@lukaso

lukaso Oct 5, 2015

Contributor

Ah yes, I get it now...

"#{cmd} --order random:#{seed}"
end

Expand Down
4 changes: 2 additions & 2 deletions spec/fixtures/minitest4/Gemfile.lock
@@ -1,14 +1,14 @@
PATH
remote: ../../../
specs:
parallel_tests (1.6.1)
parallel_tests (1.8.0)
parallel

GEM
remote: https://rubygems.org/
specs:
minitest (4.7.5)
parallel (1.6.1)
parallel (1.4.0)

PLATFORMS
ruby
Expand Down
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion spec/fixtures/rails32/Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: ../../../
specs:
parallel_tests (1.6.0)
parallel_tests (1.8.0)
parallel

GEM
Expand Down
7 changes: 1 addition & 6 deletions spec/fixtures/rails32/config/boot.rb
@@ -1,6 +1 @@
require 'rubygems'

# Set up gems listed in the Gemfile.
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)

require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
require 'bundler/setup'
2 changes: 1 addition & 1 deletion spec/fixtures/rails42/Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: ../../../
specs:
parallel_tests (1.6.0)
parallel_tests (1.8.0)
parallel

GEM
Expand Down
4 changes: 1 addition & 3 deletions spec/fixtures/rails42/config/boot.rb
@@ -1,3 +1 @@
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)

require 'bundler/setup' # Set up gems listed in the Gemfile.
require 'bundler/setup'
2 changes: 1 addition & 1 deletion spec/rails_spec.rb
Expand Up @@ -10,7 +10,7 @@ def sh(command, options={})
end

["rails32", "rails42"].each do |rails|
it "can create and run" do
it "can create and run #{rails}" do
if RUBY_PLATFORM == "java"
skip 'rails fixtures are not set up for java'
elsif rails == 'rails32' && RUBY_VERSION >= '2.2.0'
Expand Down
6 changes: 6 additions & 0 deletions spec/spec_helper.rb
Expand Up @@ -7,6 +7,12 @@
require 'parallel_tests/rspec/runtime_logger'
require 'parallel_tests/rspec/summary_logger'

String.class_eval do
def strip_heredoc
gsub(/^#{self[/^\s*/]}/, '')
end
end

OutputLogger = Struct.new(:output) do
attr_reader :flock, :flush
def puts(s=nil)
Expand Down

0 comments on commit 2d17df4

Please sign in to comment.