Sha256: 2ce9acd757443be97f028b8bfbaec3ca1fe81ce3be2898d8fe80f2dd927451c0
Contents?: true
Size: 636 Bytes
Versions: 8
Compression:
Stored size: 636 Bytes
Contents
require 'spec_helper' describe DiscourseApi::API::SiteSettings do subject { DiscourseApi::Client.new("http://localhost:3000", "test_d7fd0429940", "test_user" )} describe "#site_setting_update" do before do stub_put("http://localhost:3000/admin/site_settings/foo?api_key=test_d7fd0429940&api_username=test_user") subject.site_setting_update(name: "foo", value: "bar") end it "makes a site_settings_update request" do expect(a_put("http://localhost:3000/admin/site_settings/foo?api_key=test_d7fd0429940&api_username=test_user") .with(body: "foo=bar")).to have_been_made end end end
Version data entries
8 entries across 8 versions & 1 rubygems