Sha256: db14ff315cf5e450f8c8762a21101f3ddf6b560d58850820ac55b5e1c216d350

Contents?: true

Size: 492 Bytes

Versions: 1

Compression:

Stored size: 492 Bytes

Contents

shared_context 'solar system', :files => :planets do

  before do
    file './body.rb', <<-EOS
    class Body
    end
    EOS

    file './earth.rb', <<-EOS
    # require planet

    class Earth
    end
    EOS

    file './mars.rb', <<-EOS
    # require planet

    class Mars
    end
    EOS

    file './phobos.rb', <<-EOS
    # require body
    # require mars

    class Phobos
    end
    EOS

    file './planet.rb', <<-EOS
    # require body

    class Planet
    end
    EOS
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
codependency-1.0.0 spec/support/planets_context.rb