Sha256: 6f9eef2a0611b0199488e32f277602537dd3fdeecf7ae795763a8a47cc19f75e
Contents?: true
Size: 588 Bytes
Versions: 3
Compression:
Stored size: 588 Bytes
Contents
require 'spec_helper' require 'survey_gizmo/configuration' describe SurveyGizmo::Configuration do before(:each) do SurveyGizmo.configure do |config| config.user = 'test@test.com' config.password = 'password' end end after(:each) do SurveyGizmo.reset! end it 'should allow changing user and pass' do SurveyGizmo.configure do |config| config.user = 'slimthug' config.password = 'fourfourz' end expect(SurveyGizmo::Connection.send(:connection).params).to eq({ 'user:md5'=>'slimthug:836fd7e2961a094c01cb7ba78bac6a06' }) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
survey-gizmo-ruby-5.0.4 | spec/configuration_spec.rb |
survey-gizmo-ruby-5.0.3 | spec/configuration_spec.rb |
survey-gizmo-ruby-5.0.2 | spec/configuration_spec.rb |