From 5962c438eafb142d31541901007db4dc1d93aae8 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Tue, 17 Nov 2015 19:01:35 -0200 Subject: [PATCH] api/search_test: remove extra whitespace --- test/unit/api/search_test.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/unit/api/search_test.rb b/test/unit/api/search_test.rb index 0079db5..18648cf 100644 --- a/test/unit/api/search_test.rb +++ b/test/unit/api/search_test.rb @@ -10,9 +10,9 @@ class SearchTest < ActiveSupport::TestCase should 'not list unpublished articles' do Article.delete_all article = fast_create(Article, :profile_id => person.id, :published => false) - assert !article.published? + assert !article.published? get "/api/v1/search/article" - json = JSON.parse(last_response.body) + json = JSON.parse(last_response.body) assert_empty json['articles'] end @@ -26,11 +26,11 @@ class SearchTest < ActiveSupport::TestCase should 'invalid search string articles' do fast_create(Article, :profile_id => person.id, :name => 'some article') get "/api/v1/search/article?query=test" - json = JSON.parse(last_response.body) + json = JSON.parse(last_response.body) assert_empty json['articles'] end - should 'do not list articles of wrong type' do + should 'not list articles of wrong type' do fast_create(Article, :profile_id => person.id) get "/api/v1/search/article?type=TinyMceArticle" json = JSON.parse(last_response.body) @@ -40,7 +40,7 @@ class SearchTest < ActiveSupport::TestCase should 'list articles of one type' do fast_create(Article, :profile_id => person.id) article = fast_create(TinyMceArticle, :profile_id => person.id) - + get "/api/v1/search/article?type=TinyMceArticle" json = JSON.parse(last_response.body) assert_equal article.id, json['articles'].first['id'] @@ -105,7 +105,7 @@ class SearchTest < ActiveSupport::TestCase json = JSON.parse(last_response.body) assert_equal 1, json['articles'].count assert_equal article.id, json['articles'].first["id"] - end + end should 'search filter by category' do Article.delete_all @@ -117,7 +117,7 @@ class SearchTest < ActiveSupport::TestCase json = JSON.parse(last_response.body) assert_equal 1, json['articles'].count assert_equal article.id, json['articles'].first["id"] - end + end should 'search filter by more than one category' do Article.delete_all -- libgit2 0.21.2