spec/view_spec.rb in censu-0.1.2 vs spec/view_spec.rb in censu-0.1.3

- old
+ new

@@ -14,10 +14,11 @@ expect(view.updated_at).to be_a(Time) expect(view.autonomous_system).to be_a(AutonomousSystem) expect(view.location).to be_a(Location) expect(view.ports).to be_a(Hash) expect(view.protocols).to be_a(Array) + expect(view["location.city"]).to eq("Mountain View") expect(view.dig("location", "city")).to eq("Mountain View") expect(view.ip).to eq("8.8.8.8") expect(view.to_s).to eq("8.8.8.8") expect(view.protocols).to be_a(Array) @@ -29,9 +30,11 @@ view = @api.view(:websites, "google.com") expect(view).to be_a(Censys::Website) expect(view.domain).to eq("google.com") expect(view.to_s).to eq("google.com") expect(view.alexa_rank).to be_a(Integer) + + expect(view["80.http.get.body"]).to be_a(String) expect(view.http_response).to be_a(Censys::HTTPResponse) expect(view.http_response.body).to be_a(String) expect(view.http_response.header).to be_a(Hash) expect(view.http_response.status_code).to eq(200)