Sha256: 226589c919716cebc59d2ac5a4362be5281d0766b3419713886d4c1ededed499
Contents?: true
Size: 646 Bytes
Versions: 2
Compression:
Stored size: 646 Bytes
Contents
require 'rubygems' RSpec.configure do |config| config.before(:each, :integration => true, :version => lambda {|v| !!v }, :test_server => lambda {|ts| ts != false }) do required = example.metadata[:version] actual = Gem::Version.new(test_server.version) case required when String required = Gem::Requirement.create(">= #{required}") when Range required = Gem::Requirement.create([">= #{required.begin}", "<= #{required.end}"]) end pending("SKIP: Tests feature for Riak #{required.to_s}, but testing against #{actual.to_s}") unless required.satisfied_by?(actual) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
riak-client-1.0.5 | spec/support/version_filter.rb |
riak-client-1.0.3 | spec/support/version_filter.rb |