Clean up specs
This commit is contained in:
@@ -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
|
||||
|
@@ -1,5 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
RSpec.describe Admin::Action do
|
||||
xit "works"
|
||||
end
|
@@ -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
|
Reference in New Issue
Block a user