Sha256: 7e35f2eec25b0854c21d2c41d06bf673481e49d92da2f4920cd37203ef88e253

Contents?: true

Size: 695 Bytes

Versions: 12

Compression:

Stored size: 695 Bytes

Contents

require 'spec_helper'
require 'compiler'

module Libv8::Compiler
  describe AppleLLVM do
    subject { AppleLLVM.new 'c++' }

    describe '#name' do
      it 'returns Apple LLVM' do
        expect(subject.name).to eq 'Apple LLVM'
      end
    end

    describe '#version' do
      it 'returns the version of the compiler' do
        stub_as_available 'c++', :apple_llvm, '5.1'
        expect(subject.version).to eq '5.1'
      end
    end

    describe '#compatible?' do
      context 'when Apple LLVM\'s version is >= 4.3' do
        it 'returns true' do
          stub_as_available 'c++', :apple_llvm, '5.1'
          expect(subject).to be_compatible
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
libv8-5.1.281.59.1 spec/compiler/apple_llvm_spec.rb
libv8-5.1.281.59.0 spec/compiler/apple_llvm_spec.rb
libv8-5.1.281.59.0beta3 spec/compiler/apple_llvm_spec.rb
libv8-5.0.71.48.3 spec/compiler/apple_llvm_spec.rb
libv8-5.0.71.48.2 spec/compiler/apple_llvm_spec.rb
libv8-5.0.71.48.0beta2 spec/compiler/apple_llvm_spec.rb
libv8-4.5.95.5 spec/compiler/apple_llvm_spec.rb
libv8-4.5.95.4 spec/compiler/apple_llvm_spec.rb
libv8-4.5.95.3 spec/compiler/apple_llvm_spec.rb
libv8-4.5.95.2 spec/compiler/apple_llvm_spec.rb
libv8-4.5.95.1 spec/compiler/apple_llvm_spec.rb
libv8-4.5.95.0 spec/compiler/apple_llvm_spec.rb