diff options
Diffstat (limited to 'spec/unit/plugins/scala_spec.rb')
-rw-r--r-- | spec/unit/plugins/scala_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/plugins/scala_spec.rb b/spec/unit/plugins/scala_spec.rb index 9c7170bb..66b51ee2 100644 --- a/spec/unit/plugins/scala_spec.rb +++ b/spec/unit/plugins/scala_spec.rb @@ -34,7 +34,7 @@ describe Ohai::System, "plugin scala" do end context "if scala is installed" do - before(:each) do + before do setup_plugin plugin.run end @@ -45,7 +45,7 @@ describe Ohai::System, "plugin scala" do end context "if scala is not installed" do - before(:each) do + before do allow(plugin).to receive(:shell_out) .and_raise( Ohai::Exceptions::Exec ) plugin.run |