Sha256: 3b2921656fef1b744582c6aff1224ea3c49d6b8988485a17d9d31a28db5a370a

Contents?: true

Size: 743 Bytes

Versions: 76

Compression:

Stored size: 743 Bytes

Contents

require 'spec_helper'

describe Vx::Builder::ScriptBuilder::Clojure do
  let(:app)    { ->(env) { env } }
  let(:script) { described_class.new app }
  let(:source) { create :source, name: "clojure.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(:install)   { should_not be_empty }
      its(:script)    { should be_empty }
    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.19 spec/lib/builder/script_builder/clojure_spec.rb
vx-builder-0.5.18 spec/lib/builder/script_builder/clojure_spec.rb
vx-builder-0.5.17 spec/lib/builder/script_builder/clojure_spec.rb
vx-builder-0.5.16 spec/lib/builder/script_builder/clojure_spec.rb
vx-builder-0.5.15 spec/lib/builder/script_builder/clojure_spec.rb
vx-builder-0.5.14 spec/lib/builder/script_builder/clojure_spec.rb
vx-builder-0.5.13 spec/lib/builder/script_builder/clojure_spec.rb
vx-builder-0.5.12 spec/lib/builder/script_builder/clojure_spec.rb
vx-builder-0.5.11 spec/lib/builder/script_builder/clojure_spec.rb
vx-builder-0.5.10 spec/lib/builder/script_builder/clojure_spec.rb
vx-builder-0.5.9 spec/lib/builder/script_builder/clojure_spec.rb
vx-builder-0.5.8 spec/lib/builder/script_builder/clojure_spec.rb
vx-builder-0.5.7 spec/lib/builder/script_builder/clojure_spec.rb
vx-builder-0.5.6 spec/lib/builder/script_builder/clojure_spec.rb
vx-builder-0.5.5 spec/lib/builder/script_builder/clojure_spec.rb
vx-builder-0.5.4 spec/lib/builder/script_builder/clojure_spec.rb
vx-builder-0.5.3 spec/lib/builder/script_builder/clojure_spec.rb
vx-builder-0.5.2 spec/lib/builder/script_builder/clojure_spec.rb
vx-builder-0.5.1 spec/lib/builder/script_builder/clojure_spec.rb
vx-builder-0.5.0 spec/lib/builder/script_builder/clojure_spec.rb