busser-rspec 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,6 +21,6 @@ module Busser
21
21
  module Rspec
22
22
 
23
23
  # Version string for the Rspec Busser runner plugin
24
- VERSION = "0.2.0"
24
+ VERSION = "0.3.0"
25
25
  end
26
26
  end
@@ -27,7 +27,7 @@ class Busser::RunnerPlugin::Rspec < Busser::RunnerPlugin::Base
27
27
  install_gem("rspec", "<= 2.13.1")
28
28
  install_gem("bundler")
29
29
 
30
- rspec_path = suite_path('rspec')
30
+ rspec_path = suite_path('rspec').to_s
31
31
  setup_file = File.join(rspec_path, "setup-recipe.rb")
32
32
 
33
33
  if File.exists?(setup_file)
@@ -39,12 +39,11 @@ class Busser::RunnerPlugin::Rspec < Busser::RunnerPlugin::Base
39
39
 
40
40
 
41
41
  def test
42
- if File.exists?(File.join(suite_path('rspec').to_s, "Gemfile"))
43
- Dir.chdir(suite_path('rspec').to_s) do
44
- chef_apply do
45
- execute "bundle install" do
46
- cwd suite_path('rspec').to_s
47
- end
42
+ rspec_path = suite_path('rspec').to_s
43
+ if File.exists?(File.join(rspec_path, "Gemfile"))
44
+ chef_apply do
45
+ execute "bundle install" do
46
+ cwd rspec_path
48
47
  end
49
48
  end
50
49
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: busser-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -162,7 +162,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
162
162
  version: '0'
163
163
  segments:
164
164
  - 0
165
- hash: 1242123098446874856
165
+ hash: -1494461586936922467
166
166
  required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  none: false
168
168
  requirements:
@@ -171,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
171
171
  version: '0'
172
172
  segments:
173
173
  - 0
174
- hash: 1242123098446874856
174
+ hash: -1494461586936922467
175
175
  requirements: []
176
176
  rubyforge_project:
177
177
  rubygems_version: 1.8.25