added bucket configuration option

This commit is contained in:
2012-02-03 15:28:59 +00:00
parent c80e4ca660
commit 119f160dec
2 changed files with 16 additions and 0 deletions

View File

@@ -14,6 +14,11 @@ module Airbrake
end
attr_writer :port
def bucket
@bucket ||= 'exceptions'
end
attr_writer :bucket
end # Configuration
end # Statsd
end # Airbrake

View File

@@ -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