Sha256: 9895cbdcd7edfbe52e32005d1a6a8a7bf8d9d034470f4c6437716a8c6cf82234

Contents?: true

Size: 1.18 KB

Versions: 5

Compression:

Stored size: 1.18 KB

Contents

require 'test_helper'

describe 'lib roro stacks catalog unstoppable developer_styles omakase stories wordpress' do
  Given(:workbench)  { 'empty' }
  Given(:cli)        { Roro::CLI.new }
  Given(:adventures) { %w[3 2] }
  Given(:overrides)  { %w[] }

  Given(:rollon)    {
    ## Answers adventure questions according to values set in the :adventures array.
    stub_adventure
    ## Answers environment variable questions according to values set in
    #  the overrides array. Defaults to 'y'.
    stub_overrides
    ## Ensures Thor run commands are stubbed.
    stub_run_actions
    cli.rollon
    ## To quiet the test output do:
    # quiet { cli.rollon }
  }

  ## Tests will hang if the :adventures array is empty.
  Given { rollon unless adventures.empty?}

  describe 'must have docker-compose.yml file' do
    Then  { assert_file 'docker-compose.yml' }
  end

  describe 'must have a mise en place' do
    Then  { assert_file 'mise/mise.roro' }
  end

  describe 'must have correct containers' do
    Then  { assert_file 'mise/containers/wordpress' }
  end

  describe 'must have correct variables in files' do
    Then  { assert_file 'mise/env/base.env', /WORDPRESS_IMAGE=wordpress/ }
  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/omakase/stories/wordpress/test/stage_one/stage_test.rb
roro-0.3.27 lib/roro/stacks/catalog/unstoppable/developer_styles/omakase/stories/wordpress/test/stage_one/stage_test.rb
roro-0.3.25 lib/roro/stacks/catalog/unstoppable/developer_styles/omakase/stories/wordpress/test/stage_one/stage_test.rb
roro-0.3.24 lib/roro/stacks/catalog/unstoppable/developer_styles/omakase/stories/wordpress/test/stage_one/stage_test.rb
roro-0.3.23 lib/roro/stacks/catalog/unstoppable/developer_styles/omakase/stories/wordpress/test/stage_one/stage_test.rb