Sha256: ecb49d52f00b54f8178ae20c12eac80c396fadf8bc7d8674bacb7782c01f5942

Contents?: true

Size: 726 Bytes

Versions: 76

Compression:

Stored size: 726 Bytes

Contents

require 'spec_helper'

describe Vx::Builder::ScriptBuilder::Scala do
  let(:app)    { ->(env) { env } }
  let(:script) { described_class.new app }
  let(:source) { create :source, name: "scala.yml" }
  let(:env)    { create :env, source: source }
  let(:run)    { script.call env }
  subject { run }

  it { should eq env }

  context "run it" do
    subject { env }

    context "should be success" do
      before { run }
      its(:announce)           { should_not be_empty }
      its(:cached_directories) { should eq %w{ ~/.sbt ~/.ivy2 } }
    end

    context "when script is empty" do
      before do
        env.source.script.clear
        run
      end
      its(:script) { should_not be_empty }
    end


  end

end

Version data entries

76 entries across 76 versions & 1 rubygems

Version Path
vx-builder-0.5.41 spec/lib/builder/script_builder/scala_spec.rb
vx-builder-0.5.38 spec/lib/builder/script_builder/scala_spec.rb
vx-builder-0.5.37 spec/lib/builder/script_builder/scala_spec.rb
vx-builder-0.5.36 spec/lib/builder/script_builder/scala_spec.rb
vx-builder-0.5.35 spec/lib/builder/script_builder/scala_spec.rb
vx-builder-0.5.34 spec/lib/builder/script_builder/scala_spec.rb
vx-builder-0.5.33 spec/lib/builder/script_builder/scala_spec.rb
vx-builder-0.5.32 spec/lib/builder/script_builder/scala_spec.rb
vx-builder-0.5.31 spec/lib/builder/script_builder/scala_spec.rb
vx-builder-0.5.30 spec/lib/builder/script_builder/scala_spec.rb
vx-builder-0.5.29 spec/lib/builder/script_builder/scala_spec.rb
vx-builder-0.5.28 spec/lib/builder/script_builder/scala_spec.rb
vx-builder-0.5.27 spec/lib/builder/script_builder/scala_spec.rb
vx-builder-0.5.26 spec/lib/builder/script_builder/scala_spec.rb
vx-builder-0.5.25 spec/lib/builder/script_builder/scala_spec.rb
vx-builder-0.5.24 spec/lib/builder/script_builder/scala_spec.rb
vx-builder-0.5.23 spec/lib/builder/script_builder/scala_spec.rb
vx-builder-0.5.22 spec/lib/builder/script_builder/scala_spec.rb
vx-builder-0.5.21 spec/lib/builder/script_builder/scala_spec.rb
vx-builder-0.5.20 spec/lib/builder/script_builder/scala_spec.rb