Sha256: 3a4e9d18dd53fb77e0d6644b82f17f99804cb7aeb8821c73973eb56d4a1be5b8
Contents?: true
Size: 514 Bytes
Versions: 2
Compression:
Stored size: 514 Bytes
Contents
# frozen_string_literal: true require "spec_helper" describe DiscourseApi::API::SiteSettings do subject { DiscourseApi::Client.new("#{host}", "test_d7fd0429940", "test_user") } describe "#site_setting_update" do before do stub_put("#{host}/admin/site_settings/foo") subject.site_setting_update(name: "foo", value: "bar") end it "makes a site_settings_update request" do expect(a_put("#{host}/admin/site_settings/foo").with(body: "foo=bar")).to have_been_made end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
discourse_api-2.0.1 | spec/discourse_api/api/site_settings_spec.rb |
discourse_api-2.0.0 | spec/discourse_api/api/site_settings_spec.rb |