diff options
author | Benoit Daloze <eregontp@gmail.com> | 2019-10-26 20:52:59 +0200 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2019-10-26 20:52:59 +0200 |
commit | 3eb0d50c0baae916f4486c264605b18e77bee0dc (patch) | |
tree | 9e39c22ecfaf99be338be4b583a8f8d66eb93a7a /spec/mspec/spec | |
parent | 9c5a962354c7630d4fa2326574df3d3ce568ed5c (diff) |
Update to ruby/mspec@e171725
Diffstat (limited to 'spec/mspec/spec')
-rw-r--r-- | spec/mspec/spec/guards/platform_spec.rb | 9 |
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 |