summaryrefslogtreecommitdiff
path: root/spec/ruby/core/kernel/at_exit_spec.rb
blob: ebd9a71d15f78cafb9018e1cc9316799d8ee6781 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require_relative '../../spec_helper'
require_relative 'fixtures/classes'
require_relative '../../shared/kernel/at_exit'

describe "Kernel.at_exit" do
  it_behaves_like :kernel_at_exit, :at_exit

  it "is a private method" do
    Kernel.should have_private_instance_method(:at_exit)
  end

  it "raises ArgumentError if called without a block" do
    -> { at_exit }.should raise_error(ArgumentError, "called without a block")
  end
end

describe "Kernel#at_exit" do
  it "needs to be reviewed for spec completeness"
end