Sha256: 4384aa723bf3a17f9aa616325fed4e1dd98c6a6a3856998e0df451ed6cf98edf

Contents?: true

Size: 446 Bytes

Versions: 2

Compression:

Stored size: 446 Bytes

Contents

require_relative 'spec_helper'

module Basic101

  describe BasicObject do

    describe 'type_name' do
      let(:type_name) {'object'}
      specify {expect(subject.class.type_name).to eq type_name}
      specify {expect(subject.type_name).to eq type_name}
    end

    describe '#eval' do
      let(:runtime) {double Runtime}
      it 'should return itself' do
        expect(subject.eval(runtime)).to eq subject
      end
    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
basic101-0.4.0 test/spec/basic_object_spec.rb
basic101-0.2.0 test/spec/basic_object_spec.rb