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.0.6-java spec/system/content_inheritance_system_spec.rb
fortitude-0.0.6 spec/system/content_inheritance_system_spec.rb
fortitude-0.0.5-java spec/system/content_inheritance_system_spec.rb
fortitude-0.0.5 spec/system/content_inheritance_system_spec.rb
fortitude-0.0.4-java spec/system/content_inheritance_system_spec.rb
fortitude-0.0.4 spec/system/content_inheritance_system_spec.rb
fortitude-0.0.3 spec/system/content_inheritance_system_spec.rb
fortitude-0.0.2 spec/system/content_inheritance_system_spec.rb
fortitude-0.0.1 spec/system/content_inheritance_system_spec.rb