fix check for disabled respondus soap api plugin
Change-Id: I90e545be7ecbaf05027bc62d05e0e47471bca33b Reviewed-on: https://gerrit.instructure.com/3460 Tested-by: Hudson <hudson@instructure.com> Reviewed-by: Zach Wily <zach@instructure.com>
This commit is contained in:
parent
664b7306bd
commit
dadbdb50c7
|
@ -5,7 +5,7 @@ class RespondusAPIMiddleware
|
|||
|
||||
def self.plugin_enabled?
|
||||
plugin = Canvas::Plugin.find(:respondus_soap_endpoint)
|
||||
plugin.settings[:enabled]
|
||||
plugin.settings[:enabled] == 'true'
|
||||
end
|
||||
|
||||
# The first time a call to this API is made, and the plugin is enabled, we
|
||||
|
|
|
@ -37,10 +37,10 @@ describe "Respondus SOAP API", :type => :integration do
|
|||
|
||||
before(:each) do
|
||||
setting = PluginSetting.find_or_create_by_name('qti_exporter')
|
||||
setting.settings = Canvas::Plugin.find('qti_exporter').default_settings.merge({:enabled => true})
|
||||
setting.settings = Canvas::Plugin.find('qti_exporter').default_settings.merge({:enabled => 'true'})
|
||||
setting.save!
|
||||
setting = PluginSetting.find_or_create_by_name('respondus_soap_endpoint')
|
||||
setting.settings = {:enabled => true}
|
||||
setting.settings = {:enabled => 'true'}
|
||||
setting.save!
|
||||
user_with_pseudonym :active_user => true,
|
||||
:username => "nobody@example.com",
|
||||
|
|
Loading…
Reference in New Issue