diff --git a/config/docker/danbooru-ci b/config/docker/danbooru-ci index b2780304c..26c64479e 100644 --- a/config/docker/danbooru-ci +++ b/config/docker/danbooru-ci @@ -25,5 +25,6 @@ RUN sed -i'' -e 's/run -it/run -i/' /usr/local/bin/circleci USER danbooru RUN git reset --hard master +RUN git clean --force RUN gem install bundler --version $BUNDLER_VERSION RUN bundle install > /dev/null diff --git a/test/functional/posts_controller_test.rb b/test/functional/posts_controller_test.rb index a54f69f13..0e660d49d 100644 --- a/test/functional/posts_controller_test.rb +++ b/test/functional/posts_controller_test.rb @@ -220,7 +220,7 @@ class PostsControllerTest < ActionDispatch::IntegrationTest context "in api responses" do should "not include restricted attributes" do - as(@user) { @post.update(tag_string: "loli") } + Post.any_instance.stubs(:visible?).returns(false) get_auth post_path(@post), @user, as: :json assert_response :success