Commit 5807ff830a2ff841931d9f02d14cd1615d8e16ed
1 parent
5e2542c4
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
fixing unit tests
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
test/unit/api/articles_test.rb
... | ... | @@ -91,8 +91,8 @@ class ArticlesTest < ActiveSupport::TestCase |
91 | 91 | profile_kinds.each do |kind| |
92 | 92 | should "return article by #{kind}" do |
93 | 93 | profile = fast_create(kind.camelcase.constantize) |
94 | - article = fast_create(Article, :profile_id => profile.id, :name => "Some thing") | |
95 | - get "/api/v1/#{kind.pluralize}/#{profile.id}/articles/#{article.id}?#{params.to_query}" | |
94 | + article = fast_create(Article, :profile_id => person.id, :name => "Some thing") | |
95 | + get "/api/v1/#{kind.pluralize}/#{person.id}/articles/#{article.id}?#{params.to_query}" | |
96 | 96 | json = JSON.parse(last_response.body) |
97 | 97 | assert_equal article.id, json["article"]["id"] |
98 | 98 | end | ... | ... |