testbot 0.3.9 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ 0.4.0
2
+
3
+ Fixed RSpec 2 compability issue.
4
+
1
5
  0.3.9
2
6
 
3
7
  Added support for running tests with bundler exec.
data/README.markdown CHANGED
@@ -68,7 +68,7 @@ Using testbot with Rails 3:
68
68
 
69
69
  Using testbot with Rails 2:
70
70
 
71
- ruby script/plugin install git://github.com/joakimk/testbot.git -r 'refs/tags/v0.3.9'
71
+ ruby script/plugin install git://github.com/joakimk/testbot.git -r 'refs/tags/v0.4.0'
72
72
  script/generate testbot --connect 192.168.0.100
73
73
 
74
74
  rake testbot:spec (or :test, :features)
@@ -5,7 +5,11 @@ class RSpecAdapter
5
5
  def self.command(project_path, ruby_interpreter, files)
6
6
  spec_command = RubyEnv.ruby_command(project_path, :script => "script/spec", :bin => "rspec",
7
7
  :ruby_interpreter => ruby_interpreter)
8
- "export RSPEC_COLOR=true; #{spec_command} -O spec/spec.opts #{files}"
8
+ if File.exists?("#{project_path}/spec/spec.opts")
9
+ spec_command += " -O spec/spec.opts"
10
+ end
11
+
12
+ "export RSPEC_COLOR=true; #{spec_command} #{files}"
9
13
  end
10
14
 
11
15
  def self.test_files(dir)
data/lib/testbot.rb CHANGED
@@ -8,10 +8,16 @@ unless defined?(Testbot)
8
8
  require 'railtie' if defined?(Rails)
9
9
 
10
10
  # Don't forget to update readme and changelog
11
- VERSION = "0.3.9"
11
+ VERSION = "0.4.0"
12
+
13
+ if ENV['INTEGRATION_TEST']
14
+ SERVER_PID = "/tmp/integration_test_testbot_server.pid"
15
+ RUNNER_PID = "/tmp/integration_test_testbot_runner.pid"
16
+ else
17
+ SERVER_PID = "/tmp/testbot_server.pid"
18
+ RUNNER_PID = "/tmp/testbot_runner.pid"
19
+ end
12
20
 
13
- SERVER_PID = "/tmp/testbot_server.pid"
14
- RUNNER_PID = "/tmp/testbot_runner.pid"
15
21
  DEFAULT_WORKING_DIR = "/tmp/testbot"
16
22
  DEFAULT_SERVER_PATH = "/tmp/testbot/#{ENV['USER']}"
17
23
  DEFAULT_USER = "testbot"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testbot
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 3
9
- - 9
10
- version: 0.3.9
8
+ - 4
9
+ - 0
10
+ version: 0.4.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Joakim Kolsj\xC3\xB6"
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-02 00:00:00 +01:00
18
+ date: 2010-12-03 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency