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:
Brian Palmer 2011-05-03 15:34:44 -06:00
parent 664b7306bd
commit dadbdb50c7
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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",