diff options
Diffstat (limited to 'spec/mspec/spec/guards/guard_spec.rb')
-rw-r--r-- | spec/mspec/spec/guards/guard_spec.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/spec/mspec/spec/guards/guard_spec.rb b/spec/mspec/spec/guards/guard_spec.rb index f2828dd4ad..5c3dae4b3f 100644 --- a/spec/mspec/spec/guards/guard_spec.rb +++ b/spec/mspec/spec/guards/guard_spec.rb @@ -4,12 +4,7 @@ require 'rbconfig' describe SpecGuard, ".ruby_version" do before :each do - @ruby_version = Object.const_get :RUBY_VERSION - Object.const_set :RUBY_VERSION, "8.2.3" - end - - after :each do - Object.const_set :RUBY_VERSION, @ruby_version + stub_const "RUBY_VERSION", "8.2.3" end it "returns the full version for :full" do |