diff --git a/.travis.yml b/.travis.yml index d1014f11f..74ffa27bd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -49,7 +49,7 @@ before_install: - sudo systemctl start elasticsearch install: - bundle config set path 'vendor/bundle' - - bundle install --local --jobs 2 + - bundle install --local --jobs=2 - yarn install --frozen-lockfile - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter diff --git a/spec/system/articles/user_visits_articles_by_tag_spec.rb b/spec/system/articles/user_visits_articles_by_tag_spec.rb index 5fd1f3fea..0325b9657 100644 --- a/spec/system/articles/user_visits_articles_by_tag_spec.rb +++ b/spec/system/articles/user_visits_articles_by_tag_spec.rb @@ -5,7 +5,7 @@ RSpec.describe "User visits articles by tag", type: :system do let(:iot_tag) { create(:tag, name: "IoT") } let!(:func_tag) { create(:tag, name: "functional") } - let(:author) { create(:user) } + let(:author) { create(:user, profile_image: nil) } let!(:article) { create(:article, tags: "javascript, IoT", user: author, published_at: 2.days.ago, score: 5) } let!(:article2) { create(:article, tags: "functional", user: author, published_at: Time.current, score: 5) } let!(:article3) { create(:article, tags: "functional, javascript", user: author, published_at: 2.weeks.ago, score: 5) } diff --git a/spec/system/homepage/user_visits_homepage_articles_spec.rb b/spec/system/homepage/user_visits_homepage_articles_spec.rb index 2692155d1..9b1744cc5 100644 --- a/spec/system/homepage/user_visits_homepage_articles_spec.rb +++ b/spec/system/homepage/user_visits_homepage_articles_spec.rb @@ -1,8 +1,8 @@ require "rails_helper" RSpec.describe "User visits a homepage", type: :system do - let!(:article) { create(:article, reactions_count: 12, featured: true) } - let!(:article2) { create(:article, reactions_count: 20, featured: true) } + let!(:article) { create(:article, reactions_count: 12, featured: true, user: create(:user, profile_image: nil)) } + let!(:article2) { create(:article, reactions_count: 20, featured: true, user: create(:user, profile_image: nil)) } let!(:timestamp) { "2019-03-04T10:00:00Z" } context "when no options specified" do