Sha256: a0ec5f0ce4e6ca34e110b97411c21b3dba3a856ee3b88f91f1f25900ea300a91
Contents?: true
Size: 596 Bytes
Versions: 58
Compression:
Stored size: 596 Bytes
Contents
# typed: false # frozen_string_literal: true require "test_helper" class SettingsControllerTest < ActionDispatch::IntegrationTest include API::TestHelpers include Webmocks::YettoWebmock test "GET /settings without asking for JSON fails" do api(:get, "/settings", headers: nil) assert_response :not_acceptable end test "GET /settings asking for JSON works" do settings_json = api(:get, "/settings") assert_response :ok settings = settings_json["settings"] assert_equal "2023-03-06", settings_json["version"] assert_equal 2, settings.length end end
Version data entries
58 entries across 58 versions & 1 rubygems