summaryrefslogtreecommitdiff
path: root/spec/ruby/core/kernel/fail_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/kernel/fail_spec.rb')
-rw-r--r--spec/ruby/core/kernel/fail_spec.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/ruby/core/kernel/fail_spec.rb b/spec/ruby/core/kernel/fail_spec.rb
new file mode 100644
index 0000000000..2d117d26cd
--- /dev/null
+++ b/spec/ruby/core/kernel/fail_spec.rb
@@ -0,0 +1,13 @@
+require_relative '../../spec_helper'
+
+describe "Kernel#fail" do
+ it "is an alias of Kernel#raise" do
+ Kernel.instance_method(:fail).should == Kernel.instance_method(:raise)
+ end
+end
+
+describe "Kernel.fail" do
+ it "is an alias of Kernel.raise" do
+ Kernel.method(:fail).should == Kernel.method(:raise)
+ end
+end