Sha256: fd08ff7ef2b1a0319f68e804a0b7cef8514cecc567480a181d01d092f7eeb7c8

Contents?: true

Size: 1.82 KB

Versions: 1

Compression:

Stored size: 1.82 KB

Contents

require 'test_helper'

describe 'adventure::rails-v6_1::0 sqlite & ruby-v2_7' do
  Given { skip }
  Given(:workbench)  { }
  Given { @rollon_loud    = false }
  Given { @rollon_dummies = false }
  Given { rollon(__dir__) }

  describe 'must generate a' do
    describe 'Gemfile with the correct' do
      Given(:file) { 'Gemfile'}

      describe 'ruby version' do
        Then  { assert_file file, /ruby ['"]2.7.4['"]/ }
      end

      describe 'rails version' do
        Then  { assert_file file, /gem ['"]rails['"], ['"]~> 6.1.4/ }
      end

      describe 'sqlite version' do
        Then  { assert_file file, /gem ['"]sqlite3['"], ['"]~> 1.4['"]/ }
      end
    end

    describe 'Dockerfile' do
      Given(:file) { 'Dockerfile' }
      describe 'ruby version' do
        Then  { assert_file file, /FROM ruby:2.7/ }
      end

      describe 'bundler version' do
        Then   { assert_file 'Dockerfile', /gem install bundler:2.2.28/ }
      end

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

    describe 'docker-compose.yml' do
      Given(:file) { 'docker-compose.yml' }

      describe 'sqlite service' do
        Then  { assert_file file, /sqlite3:/ }
      end

      describe 'sqlite image' do
        Then  { assert_file file, /image: nouchka\/sqlite3:latest/ }
      end
    end

    describe 'rails master key config' do
      Given(:file) { 'config/environments/production.rb' }
      Then  { assert_file file, /# config.require_master_key = true/ }
    end

    describe 'entrypoints/docker-entrypoint.sh' do
      Given(:file) { 'entrypoints/docker-entrypoint.sh' }

      describe 'must exist' do
        Then  { assert_file file }
      end

      describe 'must have correct permissions' do
        Then  { assert File.owned?(file)  }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
roro-0.3.33 lib/roro/stacks/unstoppable_developer_styles/okonomi/languages/ruby/frameworks/rails/versions/rails_6_1/test/0/_test.rb