Sha256: 11c0f4286fda2c66934a962aa0fb574a2e92476c1bb35a35759c343ba2f4629b
Contents?: true
Size: 589 Bytes
Versions: 2
Compression:
Stored size: 589 Bytes
Contents
# typed: false # frozen_string_literal: true require "test_helper" class SettingsControllerTest < ActionDispatch::IntegrationTest include API::TestHelpers include Webmocks::Yetto 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 3, settings.length end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hephaestus-0.0.2 | templates/test/controllers/settings_controller_test.rb |
hephaestus-0.0.1 | templates/test/controllers/settings_controller_test.rb |