Skip to content

before :all not being executed #7

Description

@estahn

Dockerspec Version

0.4.1

Ruby Version

2.4

Platform Details

Mac

Scenario

Run the following, but :all is not executed

describe 'thumbor' do
  before :all do
    image = Docker::Image.get(ENV['DOCKER_IMAGE'])

    set :os, family: :alpine
    set :backend, :docker
    set :docker_image, image.id

    puts `find docker-compose -type f -name "*.tpl.yml" | xargs -I% -n1 /bin/bash -c 'envsubst < % > $(dirname %)/$(basename % .tpl.yml).yml'`
  end

  #describe docker_run(tag: Docker::Image.get(ENV['DOCKER_IMAGE']).id, family: 'alpine', wait: 1) do
  describe docker_compose('spec/docker-compose/default.yml', family: 'alpine', wait: 3) do
  end
end

Steps to Reproduce

See code above.

Expected Result

Executing :all before docker_run, or others.

Actual Result

Not being executed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions