spec/lib/appsignal/transaction_spec.rb in appsignal-0.10.5 vs spec/lib/appsignal/transaction_spec.rb in appsignal-0.10.6

- old
+ new

@@ -596,8 +596,20 @@ }.new ActionDispatch::Request::Session.create(store, {}, {}) end end end + + context "when skipping session data" do + before do + Appsignal.config = {:skip_session_data => true} + end + + it "does not pass the session data into the params sanitizer" do + Appsignal::ParamsSanitizer.should_not_receive(:sanitize) + subject + transaction.sanitized_session_data.should == {} + end + end end end end