Navigation Menu

Skip to content
This repository has been archived by the owner on May 18, 2020. It is now read-only.

Commit

Permalink
Reduce char length so Rubocop settles down
Browse files Browse the repository at this point in the history
  • Loading branch information
jsullivan authored and johnallen3d committed Apr 22, 2016
1 parent 1292cde commit b60831b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/combined_call_spec.rb
Expand Up @@ -13,22 +13,22 @@
html: '<html><body>foo bar</body></html>',
url: 'http://www.google.com'
}.each do |type, value|
[:json].each do |output_mode|
[:json].each do |mode|
before do
AlchemyAPI::Config.output_mode = output_mode
AlchemyAPI::Config.output_mode = mode
end

describe "#{type} search with #{output_mode} results" do
describe "#{type} search with #{mode} results" do
it 'returns a hash of results' do
VCR.use_cassette("combined_call_basic_#{type}_#{output_mode}_search") do
VCR.use_cassette("combined_call_basic_#{type}_#{mode}_search") do
result = subject.search(type => value)

result.must_be_instance_of Hash
end
end

it 'includes the keyword text and relavence' do
VCR.use_cassette("combined_call_basic_#{type}_#{output_mode}_search") do
VCR.use_cassette("combined_call_basic_#{type}_#{mode}_search") do
result = subject.search(type => value)

result['totalTransactions'].wont_be_nil
Expand Down

0 comments on commit b60831b

Please sign in to comment.