Skip to content

Commit

Permalink
prevent warning from rspec
Browse files Browse the repository at this point in the history
  • Loading branch information
tonytonyjan committed Dec 11, 2015
1 parent 2a14bc2 commit 0a94fcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/jaro_winkler_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@

context 'with weight exceeding 0.25' do
it 'throws exception' do
expect{ send(strategy, 'MARTHA', 'MARHTA', weight: 0.26) }.to raise_error
expect{ send(strategy, 'MARTHA', 'MARHTA', weight: 0.26) }.to raise_error RuntimeError
end
end

context 'long string' do
it 'works without exception' do
expect { send(strategy, 'haisai' * 20, 'haisai' * 20) }.not_to raise_error
expect { send(strategy, 'haisai' * 20, 'haisai' * 20) }.not_to raise_error RuntimeError
end
end
end
Expand Down

0 comments on commit 0a94fcb

Please sign in to comment.