spec/grape-appsignal/middleware_spec.rb in grape-appsignal-0.2.1 vs spec/grape-appsignal/middleware_spec.rb in grape-appsignal-0.2.2

- old
+ new

@@ -35,16 +35,16 @@ subject { get "/hello/1337"; events.last} it "delivers a payload consistent with the API call."do expect(subject.payload ).to eq( - { method: "GET" , path: "hello/:id", action: "/hello/1337", class: "API"} + { method: "GET" , path: "hello/:id", action: "::hello::1337", class: "API"} ) end it "names the payload consistent with the API call."do - expect(subject.name ).to eq("grape.GET.hello/:id") + expect(subject.name ).to eq("grape.GET.hello.id") end context "verify the api request" do subject{ get "/hello/1337"; last_response } @@ -68,15 +68,15 @@ subject { get "api/v1/hello/mark"; events.last} it "delivers a payload consistent with the API call."do expect(subject.payload ).to eq( - { method: "GET" , path: "api/:version/hello/:name", action: "/api/v1/hello/mark", class: "API"} + { method: "GET" , path: "api/:version/hello/:name", action: "::api::v1::hello::mark", class: "API"} ) end it "names the payload consistent with the API call."do - expect(subject.name ).to eq("grape.GET.api/:version/hello/:name") + expect(subject.name ).to eq("grape.GET.api.version.hello.name") end context "verify the api request" do subject{ get "api/v1/hello/mark"; last_response }