Sha256: 01e3ef645fba2caf378a66cfb9496c0b654c20a8926ffaaf2e2565a587ebdddb
Contents?: true
Size: 688 Bytes
Versions: 5
Compression:
Stored size: 688 Bytes
Contents
describe "Fortitude convenience methods", :type => :system do describe "#javascript" do it "should output JavaScript inside the proper tag, by default" do expect(render(widget_class_with_content { javascript "hi, there" })).to eq( %{<script>hi, there</script>}) end it "should include newlines if we're formatting output, but not indent it" do wc = widget_class do format_output true def content div do text "hi" javascript "hi, there" text "bye" end end end expect(render(wc)).to eq(%{<div> hi <script> hi, there </script> bye </div>}) end end end
Version data entries
5 entries across 5 versions & 1 rubygems