Commit 1ed857feefecba04abd2948c31f884ae757ef184
Committed by
Victor Costa
1 parent
56b62930
Exists in
theme-brasil-digital-from-staging
and in
4 other branches
api/search_test: remove extra whitespace
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
test/unit/api/search_test.rb
@@ -30,11 +30,11 @@ class SearchTest < ActiveSupport::TestCase | @@ -30,11 +30,11 @@ class SearchTest < ActiveSupport::TestCase | ||
30 | assert_empty json['articles'] | 30 | assert_empty json['articles'] |
31 | end | 31 | end |
32 | 32 | ||
33 | - should 'do not list articles of wrong type' do | ||
34 | - article = fast_create(Article, :profile_id => person.id) | 33 | + should 'not list articles of wrong type' do |
34 | + fast_create(Article, :profile_id => person.id) | ||
35 | get "/api/v1/search/article?type=TinyMceArticle" | 35 | get "/api/v1/search/article?type=TinyMceArticle" |
36 | json = JSON.parse(last_response.body) | 36 | json = JSON.parse(last_response.body) |
37 | - assert_not_includes json['articles'].map {|a| a['id']}, article.id | 37 | + assert_empty json['articles'] |
38 | end | 38 | end |
39 | 39 | ||
40 | should 'list articles of one type' do | 40 | should 'list articles of one type' do |