update tests with InvalidOffsetError

This commit is contained in:
Ben Osheroff 2015-04-28 15:14:14 -07:00
parent 8832ad28fd
commit 3fbe6969fb
1 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,6 @@
require 'spec_helper'
require 'hermann/consumer'
require 'hermann/errors'
# XXX: Hermann::Consumer isn't really supported anywhere, MRI included right
# now
@ -40,7 +41,9 @@ describe Hermann::Consumer do
context 'with a bad offset' do
let(:offset) { :foo }
it_behaves_like 'an error condition'
it "raises an InvalidOffset error" do
expect { subject }.to raise_error(Hermann::Errors::InvalidOffsetError)
end
end
end