Sha256: 386d8a1681a107e12fa713c1e6012b6ea1b2ebd81e378bff2c3f177692ab6424

Contents?: true

Size: 804 Bytes

Versions: 1

Compression:

Stored size: 804 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

# IMPORTANT: run only through e2e_run.sh script
describe 'E2E tests', :e2e, type: :rake do
  before do
    load_config 'e2e'
  end

  describe 'deploy without setup' do
    it 'exits with an error message' do
      expect do
        rake.run(['e2e_deploy'])
      end.to raise_error(SystemExit)
         .and output(output_file('e2e_deploy_without_setup')).to_stdout
    end
  end

  describe 'setup' do
    it 'sets up directories' do
      expect do
        rake.run(['setup'])
      end.to output(output_file('e2e_setup')).to_stdout
    end
  end

  describe 'deploy after setup' do
    it 'deploys the app' do
      expect do
        rake.run(['e2e_deploy'])
      end.to output(output_file('e2e_deploy_after_setup')).to_stdout
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mina-1.2.5 spec/e2e/e2e_spec.rb