Clean up specs

This commit is contained in:
2023-06-14 22:08:39 +10:00
parent 7c1a638b58
commit 2eaf1ddf88
6 changed files with 14 additions and 15 deletions

View File

@@ -159,17 +159,12 @@ RSpec.describe "Post creation", :db, :requests do
end
context "auth" do
xit "does not allow multiple auth methods" do
it "does not allow multiple auth methods" do
params = {
access_token: "foo"
}
headers = {
HTTP_AUTHORIZATION: "Bearer foo",
CONTENT_TYPE: "application/json"
}
post "/micropub", params.to_json, headers
post "/micropub", params, "HTTP_AUTHORIZATION" => "Bearer foo"
expect(last_response.status).to eq 400
end

View File

@@ -1,5 +0,0 @@
# frozen_string_literal: true
RSpec.describe Admin::Action do
xit "works"
end

View File

@@ -1,6 +1,7 @@
# frozen_string_literal: true
require "pathname"
require "warning"
SPEC_ROOT = Pathname(__dir__).realpath.freeze
ENV["HANAMI_ENV"] ||= "test"
@@ -10,3 +11,7 @@ require "timecop"
require_relative "support/rspec"
require_relative "support/feature_loader"
Gem.path.each do |path|
Warning.ignore(//, path)
end