Skip to content

Commit

Permalink
Disable integration tests for Ruby 1.9.2 due to a chef-zero bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zuazo committed May 21, 2014
1 parent 127c535 commit 7d37005
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -11,7 +11,7 @@ Node clients with read access can be specified using a `client_search` query. In
## Requirements

* Ruby `>= 1.9`
* Chef `>= 11.4`
* Chef Client `>= 11.4`
* yajl-ruby `~> 1.1` (included with Chef)

## Usage in Recipes
Expand Down
8 changes: 7 additions & 1 deletion Rakefile
Expand Up @@ -37,4 +37,10 @@ require 'rake/testtask'
end
end

task :default => :test
if RUBY_VERSION < '1.9.3'
# integration tests are broken in 1.9.2 due to a chef-zero bug
# https://github.com/opscode/chef-zero/issues/65
task :default => :unit
else
task :default => :test
end
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Expand Up @@ -17,7 +17,7 @@
#

require 'simplecov'
if ENV['TRAVIS']
if ENV['TRAVIS'] and RUBY_VERSION >= '1.9.3'
require 'coveralls'
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
end
Expand Down

0 comments on commit 7d37005

Please sign in to comment.