summaryrefslogtreecommitdiff
path: root/spec/unit/plugins/haskell_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/plugins/haskell_spec.rb')
-rw-r--r--spec/unit/plugins/haskell_spec.rb20
1 files changed, 10 insertions, 10 deletions
diff --git a/spec/unit/plugins/haskell_spec.rb b/spec/unit/plugins/haskell_spec.rb
index 54658513..f3623039 100644
--- a/spec/unit/plugins/haskell_spec.rb
+++ b/spec/unit/plugins/haskell_spec.rb
@@ -47,7 +47,7 @@ describe Ohai::System, "plugin haskell" do
context "if haskell/ghc is installed" do
- before(:each) do
+ before do
setup_plugin
plugin.run
end
@@ -63,7 +63,7 @@ describe Ohai::System, "plugin haskell" do
context "if haskell/ghci is installed" do
- before(:each) do
+ before do
setup_plugin
plugin.run
end
@@ -79,7 +79,7 @@ describe Ohai::System, "plugin haskell" do
context "if haskell/cabal is installed" do
- before(:each) do
+ before do
setup_plugin
plugin.run
end
@@ -95,7 +95,7 @@ describe Ohai::System, "plugin haskell" do
context "if haskell/stack is installed" do
- before(:each) do
+ before do
setup_plugin
plugin.run
end
@@ -111,7 +111,7 @@ describe Ohai::System, "plugin haskell" do
context "if haskell/stack prerelease is installed" do
- before(:each) do
+ before do
setup_plugin
allow(plugin).to receive(:shell_out)
.with("stack --version")
@@ -130,7 +130,7 @@ describe Ohai::System, "plugin haskell" do
context "if haskell is NOT installed" do
- before(:each) do
+ before do
allow(plugin).to receive(:shell_out)
.and_raise( Ohai::Exceptions::Exec )
plugin.run
@@ -142,7 +142,7 @@ describe Ohai::System, "plugin haskell" do
end
context "if haskell/ghc is NOT installed" do
- before(:each) do
+ before do
allow(plugin).to receive(:shell_out)
.with("ghc --version")
.and_raise( Ohai::Exceptions::Exec )
@@ -164,7 +164,7 @@ describe Ohai::System, "plugin haskell" do
end
context "if haskell/ghci is NOT installed" do
- before(:each) do
+ before do
allow(plugin).to receive(:shell_out)
.with("ghc --version")
.and_return(mock_shell_out(0, ghc_out, ""))
@@ -186,7 +186,7 @@ describe Ohai::System, "plugin haskell" do
end
context "if haskell/cabal is NOT installed" do
- before(:each) do
+ before do
allow(plugin).to receive(:shell_out)
.with("ghc --version")
.and_return(mock_shell_out(0, ghc_out, ""))
@@ -208,7 +208,7 @@ describe Ohai::System, "plugin haskell" do
end
context "if haskell/stack is NOT installed" do
- before(:each) do
+ before do
allow(plugin).to receive(:shell_out)
.with("ghc --version")
.and_return(mock_shell_out(0, ghc_out, ""))