move keystone_config.rb into spec/helpers/
This commit is contained in:
parent
f209714e40
commit
0907d71f00
@ -13,9 +13,14 @@ def startup_guards
|
|||||||
watch(%r{^spec/spec_helper\.rb$}) { yield }
|
watch(%r{^spec/spec_helper\.rb$}) { yield }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def all_specs
|
||||||
|
'spec'
|
||||||
|
end
|
||||||
|
|
||||||
group :rspec do
|
group :rspec do
|
||||||
guard 'rspec', guard_opts do
|
guard 'rspec', guard_opts do
|
||||||
startup_guards { 'spec' }
|
startup_guards { all_specs }
|
||||||
|
watch(%r{^helpers/(.+)\.rb$}) { all_specs }
|
||||||
watch(%r{^spec/.+_spec\.rb$})
|
watch(%r{^spec/.+_spec\.rb$})
|
||||||
watch(%r{^(libraries|providers)/(.+)\.rb$}) do |m|
|
watch(%r{^(libraries|providers)/(.+)\.rb$}) do |m|
|
||||||
"spec/#{m[1]}/#{m[2]}_spec.rb"
|
"spec/#{m[1]}/#{m[2]}_spec.rb"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
require ::File.join(::File.dirname(__FILE__), *%w(.. libraries cib_objects))
|
require ::File.join(::File.dirname(__FILE__), *%w(.. .. libraries cib_objects))
|
||||||
|
|
||||||
module Chef::RSpec
|
module Chef::RSpec
|
||||||
module Pacemaker
|
module Pacemaker
|
@ -1,6 +1,6 @@
|
|||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
require_relative File.join(%w(.. .. libraries cib_objects))
|
require_relative File.join(%w(.. .. libraries cib_objects))
|
||||||
require_relative File.join(%w(.. keystone_config))
|
require_relative File.join(%w(.. helpers keystone_config))
|
||||||
|
|
||||||
describe Chef::Libraries::Pacemaker::CIBObjects do
|
describe Chef::Libraries::Pacemaker::CIBObjects do
|
||||||
include Chef::Libraries::Pacemaker::CIBObjects
|
include Chef::Libraries::Pacemaker::CIBObjects
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
require 'chef/application'
|
require 'chef/application'
|
||||||
require_relative File.join(%w(.. spec_helper))
|
require_relative File.join(%w(.. spec_helper))
|
||||||
require_relative File.join(%w(.. keystone_config))
|
require_relative File.join(%w(.. helpers keystone_config))
|
||||||
|
|
||||||
describe "Chef::Provider::PacemakerPrimitive" do
|
describe "Chef::Provider::PacemakerPrimitive" do
|
||||||
before do
|
before do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user