Sha256: 3325045f00f6f7d1bc304cc4eaf96fef8ec92f5e521e205e0e026a327eeeb4ef

Contents?: true

Size: 950 Bytes

Versions: 5

Compression:

Stored size: 950 Bytes

Contents

require "test_helper"

describe 'Roro::CLI#rollon' do
  Given(:workbench)  { 'django' }
  Given(:cli)        { Roro::CLI.new }
  Given(:overrides)  { %w[] }

  Given(:rollon)    {
    stub_adventure
    stub_overrides
    stub_run_actions
    quiet { cli.rollon }
  }

  context 'when fatsufodo django' do
    Given(:adventures) { %w[1 1] }

    Given { rollon }

    context 'when default variables' do
      Then  { assert_file 'Dockerfile', /python:3/ }
      And   { assert_file 'docker-compose.yml', /=password/ }
    end

    context 'when overrides variables' do
      When(:overrides) { %w[3.2 y y newpass] }
      Then  { assert_file 'Dockerfile', /python:3.2/ }
      And   { assert_file 'docker-compose.yml', /=newpass/ }
    end

    context 'stage two' do
      When(:overrides) { %w[3.2 y y newpass] }
      Then  { assert_file 'Dockerfile', /python:3.2/ }
      And   { assert_file 'docker-compose.yml', /=newpass/ }
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
roro-0.3.28 lib/roro/stacks/catalog/unstoppable/developer_styles/fatsufodo/stories/django/test/stage_one/stage_one_test.rb
roro-0.3.27 lib/roro/stacks/catalog/unstoppable/developer_styles/fatsufodo/stories/django/test/stage_one/stage_one_test.rb
roro-0.3.25 lib/roro/stacks/catalog/unstoppable/developer_styles/fatsufodo/stories/django/test/stage_one/stage_one_test.rb
roro-0.3.24 lib/roro/stacks/catalog/unstoppable/developer_styles/fatsufodo/stories/django/test/stage_one/stage_one_test.rb
roro-0.3.23 lib/roro/stacks/catalog/unstoppable/developer_styles/fatsufodo/stories/django/test/stage_one/stage_one_test.rb