spec/har/archive_spec.rb in har-0.0.6 vs spec/har/archive_spec.rb in har-0.0.7
- old
+ new
@@ -139,7 +139,18 @@
ar.save_to "some.har"
out.string.should == json
end
end
+ context "viewing" do
+ let(:archive) { Archive.from_file har_path("browser-blocking-time") }
+ let(:viewer) { mock(Viewer) }
+ it "launches the viewer" do
+ Viewer.should_receive(:new).with([archive]).and_return viewer
+ viewer.should_receive(:show)
+
+ archive.view
+ end
+ end
+
end # Archive
end # HAR