summaryrefslogtreecommitdiff
path: root/spec/mspec/spec
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2019-10-26 20:52:59 +0200
committerBenoit Daloze <eregontp@gmail.com>2019-10-26 20:52:59 +0200
commit3eb0d50c0baae916f4486c264605b18e77bee0dc (patch)
tree9e39c22ecfaf99be338be4b583a8f8d66eb93a7a /spec/mspec/spec
parent9c5a962354c7630d4fa2326574df3d3ce568ed5c (diff)
downloadruby-3eb0d50c0baae916f4486c264605b18e77bee0dc.tar.gz
Update to ruby/mspec@e171725
Diffstat (limited to 'spec/mspec/spec')
-rw-r--r--spec/mspec/spec/guards/platform_spec.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/spec/mspec/spec/guards/platform_spec.rb b/spec/mspec/spec/guards/platform_spec.rb
index ad1e3695ca..6088fb2ba6 100644
--- a/spec/mspec/spec/guards/platform_spec.rb
+++ b/spec/mspec/spec/guards/platform_spec.rb
@@ -165,11 +165,10 @@ describe PlatformGuard, ".implementation?" do
PlatformGuard.implementation?(:ruby).should == true
end
- it "raises an error when passed an unrecognized name" do
- stub_const 'RUBY_ENGINE', 'ruby'
- lambda {
- PlatformGuard.implementation?(:python)
- }.should raise_error(/unknown implementation/)
+ it "works for an unrecognized name" do
+ stub_const 'RUBY_ENGINE', 'myrubyimplementation'
+ PlatformGuard.implementation?(:myrubyimplementation).should == true
+ PlatformGuard.implementation?(:other).should == false
end
end