Skip to content

Commit

Permalink
Fix failing spec for ruby 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
sush committed Oct 1, 2013
1 parent 9f7b903 commit 6b70b05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/support/shared_examples/error.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
shared_examples 'an error' do |error|
error_class_name = error.split(/_/).map{ |word| word.capitalize }.join('')
exception = Object.const_get("Lieu::#{error_class_name}")
exception = Lieu.const_get(error_class_name)

it "raising #{exception.name} when status is #{error}" do
VCR.turn_off!
Expand Down

0 comments on commit 6b70b05

Please sign in to comment.