summaryrefslogtreecommitdiff
path: root/spec/ruby/core/enumerator/arithmetic_sequence/new_spec.rb
blob: 201598382615d0e7ea10e2ebd5dda11633097261 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require_relative '../../../spec_helper'

describe "Enumerator::ArithmeticSequence.new" do
  it "is not defined" do
    -> {
      Enumerator::ArithmeticSequence.new
    }.should raise_error(NoMethodError)
  end
end

describe "Enumerator::ArithmeticSequence.allocate" do
  it "is not defined" do
    -> {
      Enumerator::ArithmeticSequence.allocate
    }.should raise_error(TypeError, 'allocator undefined for Enumerator::ArithmeticSequence')
  end
end