mirror of
https://github.com/jimeh/airbrake-statsd.git
synced 2026-02-19 02:46:43 +00:00
added bucket configuration option
This commit is contained in:
@@ -14,6 +14,11 @@ module Airbrake
|
||||
end
|
||||
attr_writer :port
|
||||
|
||||
def bucket
|
||||
@bucket ||= 'exceptions'
|
||||
end
|
||||
attr_writer :bucket
|
||||
|
||||
end # Configuration
|
||||
end # Statsd
|
||||
end # Airbrake
|
||||
|
||||
@@ -37,6 +37,17 @@ module Airbrake
|
||||
end
|
||||
end
|
||||
|
||||
describe '`bucket` option' do
|
||||
it 'defaults to "exceptions"' do
|
||||
subject.bucket.should == 'exceptions'
|
||||
end
|
||||
|
||||
it 'can be set' do
|
||||
subject.bucket = 'errors'
|
||||
subject.bucket.should == 'errors'
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user