twingly / twingly-search-api-ruby

:gem: Twingly Blog Search API in Ruby
https://developer.twingly.com/
MIT License
4 stars 0 forks source link

Do not allow empty search pattern #18

Closed twingly-mob closed 9 years ago

twingly-mob commented 9 years ago

Fix #17.

twingly-mob commented 9 years ago

@jage any reason for mocking query pattern in https://github.com/twingly/twingly-analytics-api-ruby/blob/b90e510edba839e24ccf490d4011994c8dc6598d/spec/query_spec.rb#L37 rather than just setting query.pattern = "blabla"?

jage commented 9 years ago

@jage any reason for mocking query pattern in https://github.com/twingly/twingly-analytics-api-ruby/blob/b90e510edba839e24ccf490d4011994c8dc6598d/spec/query_spec.rb#L37 rather than just setting query.pattern = "blabla"?

Don't think so, it should be possible to set Query#pattern.