Sha256: db1a3a5ad553b085f50d20bf234f6f900bf6ac9aa7430a6a5b543b2c5dbc8ed6

Contents?: true

Size: 736 Bytes

Versions: 21

Compression:

Stored size: 736 Bytes

Contents

require 'spec_helper'

describe Vx::Builder::Script::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

21 entries across 21 versions & 1 rubygems

Version Path
vx-builder-0.2.2 spec/lib/builder/script/clojure_spec.rb
vx-builder-0.2.1 spec/lib/builder/script/clojure_spec.rb
vx-builder-0.2.0 spec/lib/builder/script/clojure_spec.rb
vx-builder-0.1.8 spec/lib/builder/script/clojure_spec.rb
vx-builder-0.1.7 spec/lib/builder/script/clojure_spec.rb
vx-builder-0.1.6 spec/lib/builder/script/clojure_spec.rb
vx-builder-0.1.5 spec/lib/builder/script/clojure_spec.rb
vx-builder-0.1.4 spec/lib/builder/script/clojure_spec.rb
vx-builder-0.1.3 spec/lib/builder/script/clojure_spec.rb
vx-builder-0.1.2 spec/lib/builder/script/clojure_spec.rb
vx-builder-0.1.1 spec/lib/builder/script/clojure_spec.rb
vx-builder-0.1.0 spec/lib/builder/script/clojure_spec.rb
vx-builder-0.0.29 spec/lib/builder/script/clojure_spec.rb
vx-builder-0.0.28 spec/lib/builder/script/clojure_spec.rb
vx-builder-0.0.27 spec/lib/builder/script/clojure_spec.rb
vx-builder-0.0.26 spec/lib/builder/script/clojure_spec.rb
vx-builder-0.0.25 spec/lib/builder/script/clojure_spec.rb
vx-builder-0.0.24 spec/lib/builder/script/clojure_spec.rb
vx-builder-0.0.23 spec/lib/builder/script/clojure_spec.rb
vx-builder-0.0.22 spec/lib/builder/script/clojure_spec.rb