Skip to content
This repository has been archived by the owner on Jun 19, 2020. It is now read-only.

Commit

Permalink
(FACT-1953) Fix rspec.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdan Irimie committed Aug 6, 2019
1 parent 1f8a58a commit 0979bdc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .rspec
@@ -0,0 +1,3 @@
--format documentation
--color
--require spec_helper
4 changes: 0 additions & 4 deletions spec/facter/fact_loader_test.rb
@@ -1,9 +1,5 @@
# frozen_string_literal: true

require 'rspec/autorun'
require_relative '../../lib/fact_loader'
require_relative '../../lib/facts/linux/network_interface'

describe '.load facts for OS' do
it 'load one fact' do
allow_any_instance_of(Module).to receive(:constants).and_return([:NetworkInterface])
Expand Down
4 changes: 3 additions & 1 deletion spec/spec_helper.rb
Expand Up @@ -4,7 +4,9 @@
Coveralls.wear!

require 'bundler/setup'
require 'cli.rb/ng'
require_relative '../lib/fact_loader'
require_relative '../lib/facts/linux/network_interface'
require_relative 'facter/fact_loader_test'

RSpec.configure do |config|
# Enable flags like --only-failures and --next-failure
Expand Down

0 comments on commit 0979bdc

Please sign in to comment.