Sha256: f788b83924f7d90d7a370229a0e36509be00df110ea8f0adfde9a5a71eb828f6
Contents?: true
Size: 1.57 KB
Versions: 7
Compression:
Stored size: 1.57 KB
Contents
require "spec_helper" describe Bugsnag::Api::Client::Pivots do before do skip "event_fields API has issues currently" @client = auth_token_client @project_id = test_bugsnag_project_id @error_id = test_bugsnag_error_id @event_field_id = test_bugsnag_eventfield_id Bugsnag::Api.reset! end describe ".pivots", :vcr do it "returns a list of pivots on an error" do pivots = @client.pivots @project_id, @error_id expect(pivots).to be_a_kind_of(Array) expect(pivots.length).to be > 0 assert_requested :get, bugsnag_url("/projects/#{@project_id}/errors/#{@error_id}/pivots") end it "returns a list of pivots on a project" do pivots = @client.pivots @project_id expect(pivots).to be_a_kind_of(Array) expect(pivots.length).to be > 0 assert_requested :get, bugsnag_url("/projects/#{@project_id}/pivots") end end describe ".pivot_values", :vcr do it "returns values of pivots on an error" do values = @client.pivot_values @project_id, @event_field_id, @error_id expect(values).to be_a_kind_of(Array) expect(values.length).to be > 0 assert_requested :get, bugsnag_url("/projects/#{@project_id}/errors/#{@error_id}/pivots/#{@event_field_id}/values") end it "returns values of pivots on a project" do values = @client.pivot_values @project_id, @event_field_id expect(values).to be_a_kind_of(Array) expect(values.length).to be > 0 assert_requested :get, bugsnag_url("/projects/#{@project_id}/pivots/#{@event_field_id}/values") end end end
Version data entries
7 entries across 7 versions & 1 rubygems