Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert frozen_object_error_class helper

  • Loading branch information...
commit 445aec9e9dac9f2b81d7b49c40b8d444a452f325 1 parent 94b4d40
@jfirebaugh jfirebaugh authored
View
1  lib/mspec/helpers.rb
@@ -8,7 +8,6 @@
require 'mspec/helpers/fixture'
require 'mspec/helpers/flunk'
require 'mspec/helpers/fmode'
-require 'mspec/helpers/frozen_object_error_class'
require 'mspec/helpers/fs'
require 'mspec/helpers/hash'
require 'mspec/helpers/io'
View
9 lib/mspec/helpers/frozen_object_error_class.rb
@@ -1,9 +0,0 @@
-class Object
-
- # Returns the class of the exception raised when attempting to modify
- # a frozen object: either TypeError or RuntimeError, depending on the version.
- #
- def frozen_object_error_class
- SpecVersion.new(RUBY_VERSION) < "1.9" ? TypeError : RuntimeError
- end
-end
View
17 spec/helpers/frozen_object_error_class.rb
@@ -1,17 +0,0 @@
-require 'spec_helper'
-require 'mspec/guards'
-require 'mspec/helpers'
-
-describe "#frozen_object_error_class" do
- ruby_version_is ''...'1.9' do
- it "is TypeError" do
- frozen_object_error_class.should == TypeError
- end
- end
-
- ruby_version_is '1.9' do
- it "is RuntimeError" do
- frozen_object_error_class.should == RuntimeError
- end
- end
-end
Please sign in to comment.
Something went wrong with that request. Please try again.