Sha256: 35901b78ffcbdb512290befe53d66a18ea6623c84b7f0c2c31ec7b5ea02863e8

Contents?: true

Size: 521 Bytes

Versions: 13

Compression:

Stored size: 521 Bytes

Contents

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

module HAR
  describe Page do

    context "data" do
      let(:page) { Archive.from_file(google_path).pages.first }

      it "has entries" do
        page.entries.size.should == 5
        page.entries.each { |e| e.pageref.should == page.id }
      end

      it "has a title" do
        page.title.should == 'Google'
      end

      it "has a PageTimings instance" do
        page.timings.should be_kind_of(PageTimings)
      end
    end

  end # Page
end # HAR

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
har-0.1.2 spec/har/page_spec.rb
har-0.1.1 spec/har/page_spec.rb
har-0.1.0 spec/har/page_spec.rb
har-0.0.9 spec/har/page_spec.rb
har-0.0.8 spec/har/page_spec.rb
har-0.0.7 spec/har/page_spec.rb
har-0.0.6 spec/har/page_spec.rb
har-0.0.5 spec/har/page_spec.rb
har-0.0.4 spec/har/page_spec.rb
har-0.0.3 spec/har/page_spec.rb
har-0.0.2 spec/har/page_spec.rb
har-0.0.1 spec/har/page_spec.rb
har-0.0.1.dev spec/har/page_spec.rb