summaryrefslogtreecommitdiff
path: root/spec/ruby/core/env/dup_spec.rb
blob: ac66b455cdebe9740d09d93394389deb6946eaf8 (plain)
1
2
3
4
5
6
7
8
9
require_relative '../../spec_helper'

describe "ENV#dup" do
  it "raises TypeError" do
    -> {
      ENV.dup
    }.should raise_error(TypeError, /Cannot dup ENV, use ENV.to_h to get a copy of ENV as a hash/)
  end
end