Skip to content

Commit

Permalink
Put before(:each) hooks in one group
Browse files Browse the repository at this point in the history
  • Loading branch information
hfm committed Jun 7, 2018
1 parent 4e8edce commit e8c14b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/unit/facter/initsystem_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'spec_helper'

describe 'initsystem' do
before(:each) { Facter.clear }
after(:each) { Facter.clear }

let(:os) do
@@ -12,6 +11,7 @@
end

before :each do
Facter.clear
allow(Facter.fact(:kernel)).to receive(:value).and_return('Linux')
allow(Facter.fact(:os)).to receive(:value).and_return(os)
end

0 comments on commit e8c14b8

Please sign in to comment.