diff options
Diffstat (limited to 'spec/unit/util/file_helper_spec.rb')
-rw-r--r-- | spec/unit/util/file_helper_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/util/file_helper_spec.rb b/spec/unit/util/file_helper_spec.rb index f6c91cb1..259d4a22 100644 --- a/spec/unit/util/file_helper_spec.rb +++ b/spec/unit/util/file_helper_spec.rb @@ -26,7 +26,7 @@ end describe "Ohai::Util::FileHelper" do let(:file_helper) { FileHelperMock.new } - before(:each) do + before do allow(file_helper).to receive(:name).and_return("Fakeclass") allow(File).to receive(:executable?).and_return(false) end |