Sha256: dc72a26987366102a61750af256554cacca5bc86fabce232b5515c87cb8fc89e
Contents?: true
Size: 384 Bytes
Versions: 3
Compression:
Stored size: 384 Bytes
Contents
require "spec_helper" describe "Exception" do describe ".exit_code,=" do it do MyError = Class.new Exception MyError.exit_code = 1 expect(MyError.new.exit_code).to eq(1) end end describe "@@exit_code" do it do class MyError2 < Exception @@exit_code = 1 end expect(MyError2.new.exit_code).to eq(1) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tagen-2.0.2 | spec/tagen/core/exception_spec.rb |
tagen-2.0.1 | spec/tagen/core/exception_spec.rb |
tagen-2.0.0 | spec/tagen/core/exception_spec.rb |