Sha256: b8235e98d052e75b53e2e4d021c320c3bcea7d506b63e7476a33ea484022cfc3

Contents?: true

Size: 526 Bytes

Versions: 1

Compression:

Stored size: 526 Bytes

Contents

require File.expand_path("../../spec_helper", __FILE__)

module HAR
  describe Viewer do

    context "creating" do
      it "validates the given HARs if asked to" do
        lambda { Viewer.new(["--validate", *all_hars]) }.should raise_error(ValidationError)
      end

      it "has a merged archive" do
        Viewer.new(good_hars).har.should be_kind_of(Archive)
      end

      it "parses options" do
        v = Viewer.new(["-p", "1234", *good_hars])
        v.options[:port].should == 1234
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
har-0.0.1 spec/har/viewer_spec.rb