Sha256: db259533bdd4f83518148cc20e973929557f8eaa52c3410fa7495f7955ed4b82
Contents?: true
Size: 566 Bytes
Versions: 2
Compression:
Stored size: 566 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe Object do describe '#get_binding' do it 'should return the objects binding' do expect(-> {}.get_binding).to be_instance_of(Binding) end end describe '#method_missing' do it 'should preserve its original behavior for missing methods' do expect { send(:i_am_a_missing_method) }.to raise_error(NoMethodError) end it 'should preserve its original behavior for missing variables' do expect { i_am_a_missing_variable }.to raise_error(NameError) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
commander-5.0.0 | spec/core_ext/object_spec.rb |
commander-4.6.0 | spec/core_ext/object_spec.rb |