test/punchfork_test.rb in punchfork-0.0.2 vs test/punchfork_test.rb in punchfork-0.0.3
- old
+ new
@@ -1,20 +1,22 @@
require 'test_helper'
class PunchforkTest < ActiveSupport::TestCase
def setup
- # Punchfork.setup do |config|
- # config.api_key = ENV['PUNCHFORK_API_KEY']
- # end
end
test "truth" do
assert_kind_of Module, Punchfork
end
test "search should get 50 results" do
response = Punchfork.search(:tomatoes, count:50)
assert_equal 50, response['recipes'].length
end
+
+ test "search should support strings with spaces" do
+ Punchfork.search('Heirloom Tomatoes')
+ end
+
end