spec/nyaplot/frame_spec.rb in nyaplot-0.1.1 vs spec/nyaplot/frame_spec.rb in nyaplot-0.1.2

- old
+ new

@@ -13,13 +13,12 @@ @frame.add(@plot) expect(JSON.parse(@frame.to_json)[:panes] != []).to eq(true) end end - context ".export_html" do + context ".generate_body" do it "should return correct html" do - html = @frame.export_html - + html = @frame.generate_body if_brackets_is_same_number = [[/<html(.*?)>/,"</html>"],[/<script(.*?)>/,"</script>"],[/<body(.*?)>/,"</body>"]].all? do |pair| html.scan(pair[0]).length == html.scan(pair[1]).length end expect(if_brackets_is_same_number).to eq(true) end