Sha256: ac52c8be925e5dc61f09d3f220fd46352ace48c7b937f05a6044422828d758e8
Contents?: true
Size: 1.21 KB
Versions: 2
Compression:
Stored size: 1.21 KB
Contents
require_relative '../spec_helper.rb' module Larrow::Runner::Manifest describe Travis do class FileLoad attr_accessor :filename def initialize filename self.filename = filename end def get _filename path = File.expand_path "../../fixtures/#{filename}", __FILE__ File.read(path) end def source_sync_script; '' end end let(:erlang_conf){ Travis.new(FileLoad.new 'travis_erlang.yml').load } let(:ruby_conf){ Travis.new(FileLoad.new 'travis_ruby.yml').load } it 'parse the manifest file' do expect(erlang_conf.steps[:prepare].scripts.size).to eq(1) step = erlang_conf.steps[:functional_test] expect(step.scripts.size).to eq(1) expect(step.scripts.first.cmd).to eq('./rebar compile ct') end it 'support erlang by kerl' do scripts = erlang_conf.steps[:init].scripts commands = scripts.map(&:actual_command).join("\n") expect(commands).to include('activate') expect(commands).to include('r16') end it 'support ruby by rvm' do scripts = ruby_conf.steps[:init].scripts commands = scripts.map(&:actual_command).join("\n") expect(commands).to include('rvm.io') end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
larrow-runner-0.0.2 | spec/manifest/travis_spec.rb |
larrow-runner-0.0.1 | spec/manifest/travis_spec.rb |