Skip to content

Commit

Permalink
Ruby 1.9.2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
sandro committed Sep 6, 2010
1 parent 8ba9cf3 commit 5566ce4
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
14 changes: 8 additions & 6 deletions lib/specjour/dispatcher.rb
Expand Up @@ -38,15 +38,17 @@ def find_tests
end

def all_specs(tests_path = 'spec')
Dir.chdir(project_path) do
Dir[File.join(tests_path, "**/*_spec.rb")].sort
end if File.exists? File.join(project_path, tests_path)
full_path = File.join(project_path, tests_path)
if File.exists? full_path
Dir[File.join(full_path, "**/*_spec.rb")].sort
end
end

def all_features(tests_path = 'features')
Dir.chdir(project_path) do
Dir[File.join(tests_path, "**/*.feature")].sort
end if File.exists? File.join(project_path, tests_path)
full_path = File.join(project_path, tests_path)
if File.exists? full_path
Dir[File.join(full_path, "**/*.feature")].sort
end
end

def add_manager(manager)
Expand Down
2 changes: 1 addition & 1 deletion lib/specjour/rspec/distributed_formatter.rb
Expand Up @@ -64,7 +64,7 @@ def to_hash
protected

def print_and_flush(messages)
output.print messages.to_s
output.print messages.join
output.flush
messages.replace []
end
Expand Down
1 change: 1 addition & 0 deletions spec/specjour/cli_spec.rb
@@ -1,6 +1,7 @@
require 'spec_helper'

describe Specjour::CLI do
subject { Specjour::CLI.new }
let(:fake_pid) { 100_000_000 }
before do
stub(Specjour::CPU).cores.returns(27)
Expand Down
1 change: 1 addition & 0 deletions spec/specjour/manager_spec.rb
Expand Up @@ -2,6 +2,7 @@

describe Specjour::Manager do
describe "#available_for?" do
subject { Specjour::Manager.new }
it "isn't available for all projects by default" do
subject.available_for?(rand.to_s).should be_false
end
Expand Down
4 changes: 3 additions & 1 deletion spec/specjour_spec.rb
Expand Up @@ -8,7 +8,9 @@ def boo
end

describe Specjour do
it "pends as an example"
it "pends as an example" do
pending
end

it "fails as an example" do
boo
Expand Down

0 comments on commit 5566ce4

Please sign in to comment.