Sha256: 55a8bf1bdcbdee549335564c7775f51babd6155c1fa83b3a7e15c38e904b5dd0
Contents?: true
Size: 712 Bytes
Versions: 2
Compression:
Stored size: 712 Bytes
Contents
require 'ceph_storage' require 'yaml' def spec_config YAML.load(File.read('.cluster.yml')) if File.exist? '.cluster.yml' end def cluster_config sp_config = spec_config hash = {} hash[:config_dir] = sp_config[:config_dir] hash[:user] = sp_config[:user] hash[:cluster] = sp_config[:cluster] hash[:flags] = sp_config[:flags] hash end RSpec.configure do |c| config = spec_config c.fail_fast = true c.filter_run_excluding( requires_cluster_readable: true ) unless config[:readable] c.filter_run_excluding( requires_create_delete: true ) unless config[:pool][:create_delete] c.filter_run_excluting( requires_create_delete: true ) unless config[:pool][:create_delete] end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ceph_storage-0.1.1 | spec/spec_helper.rb |
ceph_storage-0.1.0 | spec/spec_helper.rb |