Sha256: 83d80ef1d0248593a723b57c692ea4c806dccab98b10c49d4d9b80205b7e5f14

Contents?: true

Size: 482 Bytes

Versions: 3

Compression:

Stored size: 482 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

3 entries across 3 versions & 1 rubygems

Version Path
codependency-0.3.1 spec/support/planets_context.rb
codependency-0.3.0 spec/support/planets_context.rb
codependency-0.2.0 spec/support/planets_context.rb