Sha256: 2c6b805a07bc404e5beb8dd207bebf44f05d6c882295d0b16fdede0bcba61546

Contents?: true

Size: 1.24 KB

Versions: 4

Compression:

Stored size: 1.24 KB

Contents

require "test_helper"

describe 'okonomi roll_your_own' do
  Given(:cli)        { Roro::CLI.new }
  Given(:overrides)  { %w[] }
  Given(:workbench)  { 'empty'}

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

  Given(:adventures) { %w[2 1] }

  Given  {
    rollon
    # quiet { rollon }
  }

  describe 'must generate' do
    describe 'templates with stage one' do
      # Then  { assert_file 'mise/stacks/my_story/templates/stage_one/.keep' }
    end

    describe 'test' do
      describe 'with stage one' do
        describe 'with stage dummy' do
          # Then  { assert_file 'mise/stacks/my_story/test/stage_one/stage_dummy/.keep' }
        end
      end
    end
  end

  describe 'story file must have correct content' do
    When(:contents) { [/env/] }
    Then { contents.each { |c|
      assert_file 'mise/stacks/my_story/my_story.yml', c } }
  end

  describe 'must generate mise' do
    Then { assert_file 'mise' }
  end

  describe 'must generate containers' do
    Then { assert_file 'mise/containers' }
  end

  describe 'must generate environments' do
    Then { assert_file 'mise/env/base.env' }
  end

  describe 'must generate keys' do
    Then { assert_file 'mise/keys/base.key' }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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