summaryrefslogtreecommitdiff
path: root/spec/mspec/spec/helpers/flunk_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/mspec/spec/helpers/flunk_spec.rb')
-rw-r--r--spec/mspec/spec/helpers/flunk_spec.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/mspec/spec/helpers/flunk_spec.rb b/spec/mspec/spec/helpers/flunk_spec.rb
index 7b1216d3f7..b6a1f21c12 100644
--- a/spec/mspec/spec/helpers/flunk_spec.rb
+++ b/spec/mspec/spec/helpers/flunk_spec.rb
@@ -4,17 +4,17 @@ require 'mspec/runner/mspec'
require 'mspec/guards'
require 'mspec/helpers'
-describe Object, "#flunk" do
+RSpec.describe Object, "#flunk" do
before :each do
- MSpec.stub(:actions)
- MSpec.stub(:current).and_return(double("spec state").as_null_object)
+ allow(MSpec).to receive(:actions)
+ allow(MSpec).to receive(:current).and_return(double("spec state").as_null_object)
end
it "raises an SpecExpectationNotMetError unconditionally" do
- lambda { flunk }.should raise_error(SpecExpectationNotMetError)
+ expect { flunk }.to raise_error(SpecExpectationNotMetError)
end
it "accepts on argument for an optional message" do
- lambda {flunk "test"}.should raise_error(SpecExpectationNotMetError)
+ expect {flunk "test"}.to raise_error(SpecExpectationNotMetError)
end
end