spec/lib/appsignal/transaction_spec.rb in appsignal-0.8.6 vs spec/lib/appsignal/transaction_spec.rb in appsignal-0.8.7.alpha.1
- old
+ new
@@ -48,11 +48,12 @@
before { transaction.set_process_action_event(process_action_event) }
let(:process_action_event) { notification_event }
it 'should add a process action event' do
- transaction.process_action_event.should == process_action_event
+ transaction.process_action_event.name.should == process_action_event.name
+ transaction.process_action_event.payload.should == process_action_event.payload
end
it "should set the action" do
transaction.action.should == 'BlogPostsController#show'
end
@@ -75,12 +76,13 @@
:name => 'perform_job.delayed_job',
:payload => payload
)
end
- it 'should add a process action event' do
- transaction.process_action_event.should == perform_job_event
+ it 'should add a perform job event' do
+ transaction.process_action_event.name.should == perform_job_event.name
+ transaction.process_action_event.payload.should == perform_job_event.payload
end
it "should set the action" do
transaction.action.should == 'BackgroundJob#perform'
end
@@ -231,10 +233,10 @@
event_payload.clear
event_payload.merge!(:weird => weird_class)
transaction.convert_values_to_primitives!
end
- it { should == {:weird => weird_class.inspect} }
+ its([:weird]) { should be_a(Class) }
end
end
context "without values that need to be converted" do
subject { transaction.convert_values_to_primitives! }