Sha256: 7ee34fc17479304ddf775867d495a3368f8f0c6f6312b80d2ca92e12d5e6edda

Contents?: true

Size: 838 Bytes

Versions: 9

Compression:

Stored size: 838 Bytes

Contents

require 'spec_helper'

describe Jack::Settings do
  before(:all) do
    Jack::UI.mute = true
  end
  let(:settings) {
    Jack::Settings.new(@root)
  }

  describe "create" do
    context "custom project settings" do
      before(:each) { fake_project.create_settings }
      after(:each)  { fake_project.remove_settings }
      it "flags uses custom project settings" do
        project_flags = '--keyname "default" --platform "Fake Platform From Project Settings"'
        expect(settings.create_flags).to eq(project_flags)
      end
    end

    context "no custom project settings" do
      it "flags uses defaults provided gem" do
        project_flags = '--keyname "default" --platform "64bit Amazon Linux 2016.09 v2.2.0 running Docker 1.11.2"'
        expect(settings.create_flags).to eq(project_flags)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
jack-eb-1.3.0 spec/lib/settings_spec.rb
jack-eb-1.2.1 spec/lib/settings_spec.rb
jack-eb-1.2.0 spec/lib/settings_spec.rb
jack-eb-1.1.2 spec/lib/settings_spec.rb
jack-eb-1.1.1 spec/lib/settings_spec.rb
jack-eb-1.1.0 spec/lib/settings_spec.rb
jack-eb-1.0.1 spec/lib/settings_spec.rb
jack-eb-1.0.0 spec/lib/settings_spec.rb
jack-eb-0.3.0 spec/lib/settings_spec.rb