Sha256: d2cffd462e8e8cc3745fd8e4e198f3da53722e7b67d0551e6dcedfda19c18489

Contents?: true

Size: 410 Bytes

Versions: 29

Compression:

Stored size: 410 Bytes

Contents

describe "Fortitude content inheritance", :type => :system do
  it "should allow calling super from #content" do
    parent = widget_class_with_content { text 'parent!' }
    child = widget_class_with_content(:superclass => parent) do
      super()
      text "child!"
      super()
    end

    expect(render(parent.new)).to eq("parent!")
    expect(render(child.new)).to eq("parent!child!parent!")
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
fortitude-0.9.6-java spec/system/content_inheritance_system_spec.rb
fortitude-0.9.6 spec/system/content_inheritance_system_spec.rb
fortitude-0.9.5-java spec/system/content_inheritance_system_spec.rb
fortitude-0.9.5 spec/system/content_inheritance_system_spec.rb
fortitude-0.9.4-java spec/system/content_inheritance_system_spec.rb
fortitude-0.9.4 spec/system/content_inheritance_system_spec.rb
fortitude-0.9.3-java spec/system/content_inheritance_system_spec.rb
fortitude-0.9.3 spec/system/content_inheritance_system_spec.rb
fortitude-0.9.2-java spec/system/content_inheritance_system_spec.rb
fortitude-0.9.2 spec/system/content_inheritance_system_spec.rb
fortitude-0.9.1-java spec/system/content_inheritance_system_spec.rb
fortitude-0.9.1 spec/system/content_inheritance_system_spec.rb
fortitude-0.9.0-java spec/system/content_inheritance_system_spec.rb
fortitude-0.9.0 spec/system/content_inheritance_system_spec.rb
fortitude-0.0.10-java spec/system/content_inheritance_system_spec.rb
fortitude-0.0.10 spec/system/content_inheritance_system_spec.rb
fortitude-0.0.9-java spec/system/content_inheritance_system_spec.rb
fortitude-0.0.9 spec/system/content_inheritance_system_spec.rb
fortitude-0.0.7-java spec/system/content_inheritance_system_spec.rb
fortitude-0.0.7 spec/system/content_inheritance_system_spec.rb