debian-mirror-gitlab/spec/lib/gitlab/sentry_spec.rb
2018-03-17 18:26:18 +05:30

13 lines
305 B
Ruby

require 'spec_helper'
describe Gitlab::Sentry do
describe '.context' do
it 'adds the locale to the tags' do
expect(described_class).to receive(:enabled?).and_return(true)
described_class.context(nil)
expect(Raven.tags_context[:locale]).to eq(I18n.locale.to_s)
end
end
end