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.7.2.3 templates/test/controllers/settings_controller_test.rb
hephaestus-0.7.2.2 templates/test/controllers/settings_controller_test.rb
hephaestus-0.7.2.1 templates/test/controllers/settings_controller_test.rb
hephaestus-0.7.2 templates/test/controllers/settings_controller_test.rb
hephaestus-0.7.1 templates/test/controllers/settings_controller_test.rb
hephaestus-0.7.0 templates/test/controllers/settings_controller_test.rb
hephaestus-0.6.4 templates/test/controllers/settings_controller_test.rb
hephaestus-0.6.3 templates/test/controllers/settings_controller_test.rb
hephaestus-0.6.2 templates/test/controllers/settings_controller_test.rb
hephaestus-0.6.1 templates/test/controllers/settings_controller_test.rb
hephaestus-0.6.0 templates/test/controllers/settings_controller_test.rb
hephaestus-0.5.2 templates/test/controllers/settings_controller_test.rb
hephaestus-0.5.1 templates/test/controllers/settings_controller_test.rb
hephaestus-0.5.0 templates/test/controllers/settings_controller_test.rb
hephaestus-0.4.0 templates/test/controllers/settings_controller_test.rb
hephaestus-0.3.1 templates/test/controllers/settings_controller_test.rb
hephaestus-0.2.3 templates/test/controllers/settings_controller_test.rb
hephaestus-0.2.2 templates/test/controllers/settings_controller_test.rb