Sha256: 13e27caf1a6857e5f3a52d5e786167827720f4f49f8a16d66aa263c6ed7dd1b8

Contents?: true

Size: 536 Bytes

Versions: 1

Compression:

Stored size: 536 Bytes

Contents

class Shoes
  class FakeElement < Dimensions
    include Common::Attachable
    include Common::Inspect
    include Common::Positioning
    include Common::Remove
    include Common::Visibility

    def add_child(_element)
      true
    end

    def adjust_current_position(*_)
    end

    # Fake this out instead of using Common::Style to avoid things like touching
    # app level styles, etc. that we don't need for testing purposes
    def style
      @style ||= {}
      @style
    end

    attr_accessor :parent, :gui
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoes-core-4.0.0.pre7 spec/shoes/helpers/fake_element.rb