spec/integration_spec.rb in stackprof-webnav-1.0.1 vs spec/integration_spec.rb in stackprof-webnav-1.0.2

- old
+ new

@@ -6,11 +6,11 @@ let(:response) { app.last_response } after(:each) do Dir.glob("spec/fixtures/*.flames.json").each {|file| File.delete(file) } Dir.glob("spec/fixtures/*.digraph.dot").each {|file| File.delete(file) } - Dir.glob("spec/fixtures/*.graph.png").each {|file| File.delete(file) } + Dir.glob("spec/fixtures/*.graph.svg").each {|file| File.delete(file) } end describe "index" do it "lists the files in a folder" do app = build_app(directory: "spec/fixtures") @@ -53,11 +53,11 @@ app.get "/flames.json", dump: fixture_path("test-raw.dump") expect(response.body).to include("flamegraph") end it "is able to render graph" do - app.get "/graph.png", dump: fixture_path("test.dump") - expect(response.get_header("Content-Type")).to eq("image/png") + app.get "/graph.svg", dump: fixture_path("test.dump") + expect(response.get_header("Content-Type")).to eq("image/svg+xml") expect(response.body.size).to_not eq(0) end it "method page renders information about a method" do frame = presenter.overview_frames.first