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

Version Path
hephaestus-0.8.11 templates/test/controllers/settings_controller_test.rb
hephaestus-0.8.10 templates/test/controllers/settings_controller_test.rb
hephaestus-0.8.9.2 templates/test/controllers/settings_controller_test.rb
hephaestus-0.8.9.1 templates/test/controllers/settings_controller_test.rb
hephaestus-0.8.9 templates/test/controllers/settings_controller_test.rb
hephaestus-0.8.8 templates/test/controllers/settings_controller_test.rb
hephaestus-0.8.7.5 templates/test/controllers/settings_controller_test.rb
hephaestus-0.8.7.4 templates/test/controllers/settings_controller_test.rb
hephaestus-0.8.7.3 templates/test/controllers/settings_controller_test.rb
hephaestus-0.8.7.2 templates/test/controllers/settings_controller_test.rb
hephaestus-0.8.7.1 templates/test/controllers/settings_controller_test.rb
hephaestus-0.8.7 templates/test/controllers/settings_controller_test.rb
hephaestus-0.8.6 templates/test/controllers/settings_controller_test.rb
hephaestus-0.8.5 templates/test/controllers/settings_controller_test.rb
hephaestus-0.8.4.1 templates/test/controllers/settings_controller_test.rb
hephaestus-0.8.4 templates/test/controllers/settings_controller_test.rb
hephaestus-0.8.3.4 templates/test/controllers/settings_controller_test.rb
hephaestus-0.8.3.3 templates/test/controllers/settings_controller_test.rb
hephaestus-0.8.3.2 templates/test/controllers/settings_controller_test.rb
hephaestus-0.8.3.1 templates/test/controllers/settings_controller_test.rb