Sha256: c50791e7eca02ed50236e384743b4fa74b40098b5743e564b1537a9a56001c69

Contents?: true

Size: 964 Bytes

Versions: 1

Compression:

Stored size: 964 Bytes

Contents

require 'test_helper'

describe 'lib roro stacks catalog unstoppable developer_styles okonomi languages ruby stories rails versions 7_0' do
  Given(:workbench)  { 'empty' }
  Given(:cli)        { Roro::CLI.new }
  Given(:adventures) { %w[ 2 2 1 1 ] }
  Given(:overrides)  { %w[] }

  Given(:rollon)    {
    copy_stage_dummy(__dir__)
    stubs_dependencies_met?
    stubs_yes?
    stub_adventure
    stub_overrides
    stub_run_actions
    # quiet { cli.rollon }
    cli.rollon
  }

  Given { rollon unless adventures.empty?}

  describe 'must generate a' do
    describe 'Gemfile with the correct rails version' do
      Then  { assert_file 'Gemfile', /gem \"rails\", \"~> 7.0.0.alpha2/ }
    end

    describe 'Dockerfile' do
      describe 'ruby version' do
        Then  { assert_file 'Dockerfile', /FROM ruby:3.0/ }
      end

      describe 'yarn install command' do
        Then   { assert_file 'Dockerfile', /RUN yarn install/ }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
roro-0.3.30 lib/roro/stacks/catalog/unstoppable/developer_styles/okonomi/languages/ruby/stories/rails/versions/7_0/test/stage_one/stage_test.rb