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