mirror of
https://github.com/inspec/inspec
synced 2024-11-10 07:04:15 +00:00
Moved rspec/matchers require to somewhere more appropriate.
Signed-off-by: Ryan Davis <zenspider@chef.io>
This commit is contained in:
parent
2fc9ec3ec7
commit
3f0f675364
2 changed files with 2 additions and 2 deletions
|
@ -4,8 +4,6 @@ require "inspec/resource"
|
|||
# This relies on AWS being stripped from the inspec-core gem
|
||||
inspec_core_only = ENV["NO_AWS"] || !File.exist?(File.join(File.dirname(__FILE__), "..", "resource_support", "aws.rb"))
|
||||
|
||||
require "rspec/matchers"
|
||||
|
||||
# Do not attempt to load cloud resources if we are in inspec-core mode
|
||||
unless inspec_core_only
|
||||
require "resource_support/aws"
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# copyright: 2015, Vulcano Security GmbH
|
||||
|
||||
require "rspec/matchers"
|
||||
|
||||
RSpec::Matchers.define :be_readable do
|
||||
match do |file|
|
||||
file.readable?(@by, @by_user)
|
||||
|
|
Loading…
Reference in a new issue