cukeq 0.0.1.dev4 → 0.0.1.dev5

Sign up to get free protection for your applications and to get access to all the features.
@@ -34,7 +34,7 @@ require "cukeq/runner"
34
34
 
35
35
  module CukeQ
36
36
  def self.identifier
37
- @identifier ||= "#{Socket.gethostname}-#{Etc.getlogin}"
37
+ @identifier ||= "#{Socket.gethostname}-#{Etc.getlogin}-#{Process.pid}"
38
38
  end
39
39
 
40
40
  def self.root
@@ -1,3 +1,3 @@
1
1
  module CukeQ
2
- VERSION = "0.0.1.dev4"
2
+ VERSION = "0.0.1.dev5"
3
3
  end
@@ -4,7 +4,8 @@ describe CukeQ do
4
4
  it "identifies this CukeQ instance" do
5
5
  Socket.stub!(:gethostname => "hostname")
6
6
  Etc.stub!(:getlogin => "login")
7
+ Process.stub!(:pid => "pid")
7
8
 
8
- CukeQ.identifier.should == "hostname-login"
9
+ CukeQ.identifier.should == "hostname-login-pid"
9
10
  end
10
11
  end
@@ -17,7 +17,7 @@ describe CukeQ::ScenarioRunner do
17
17
  it "creates a configured and updated Scm instance" do
18
18
  job = {'scm' => {'url' => 'git://example.com/foo/bar', 'revision' => 'some-revision'}}
19
19
 
20
- CukeQ::Scm.should_receive(:new).with(CukeQ.root, job['scm']['url']).
20
+ CukeQ::Scm.should_receive(:new).with(job['scm']['url'], CukeQ.root).
21
21
  and_return(mock_scm = mock("scm"))
22
22
 
23
23
  mock_scm.should_receive(:current_revision).and_return 'another-revision'
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 0
7
7
  - 0
8
8
  - 1
9
- - dev4
10
- version: 0.0.1.dev4
9
+ - dev5
10
+ version: 0.0.1.dev5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jari Bakken
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-06 00:00:00 +01:00
18
+ date: 2010-12-07 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency