Sha256: 44969d9524311c0a1f93d16ad3803c69cce34be0c3463350aaf8810d2979b31f

Contents?: true

Size: 535 Bytes

Versions: 41

Compression:

Stored size: 535 Bytes

Contents

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

41 entries across 41 versions & 6 rubygems

Version Path
commander-openflighthpc-2.0.2 spec/core_ext/object_spec.rb
commander-openflighthpc-2.0.1 spec/core_ext/object_spec.rb
commander-openflighthpc-2.0.0 spec/core_ext/object_spec.rb
commander-4.5.2 spec/core_ext/object_spec.rb
commander-4.5.1 spec/core_ext/object_spec.rb
commander-4.5.0 spec/core_ext/object_spec.rb
commander-openflighthpc-1.2.0 spec/core_ext/object_spec.rb
commander-openflighthpc-1.1.2 spec/core_ext/object_spec.rb
commander-openflighthpc-1.1.1 spec/core_ext/object_spec.rb
commander-openflighthpc-1.1.0 spec/core_ext/object_spec.rb
commander-openflighthpc-1.0.0 spec/core_ext/object_spec.rb
commander-openflighthpc-1.0.0.pre.alpha1 spec/core_ext/object_spec.rb
commander-4.4.7 spec/core_ext/object_spec.rb
murano-cli-commander-4.4.10 spec/core_ext/object_spec.rb
commander-4.4.6 spec/core_ext/object_spec.rb
commander-4.4.5 spec/core_ext/object_spec.rb
commander-fastlane-4.4.6 spec/core_ext/object_spec.rb
commander-4.4.4 spec/core_ext/object_spec.rb
commander-fastlane-4.4.5 spec/core_ext/object_spec.rb
commander-fastlane-4.4.4 spec/core_ext/object_spec.rb