Sha256: 418b9c543e06d69ad87d7841231e32f53c4b97c4bd04137247aa038647699a80
Contents?: true
Size: 713 Bytes
Versions: 4
Compression:
Stored size: 713 Bytes
Contents
require 'spec_helper' require 'survey_gizmo/configuration' describe SurveyGizmo::Configuration do before(:each) do SurveyGizmo.configure do |config| config.api_token = 'token' config.api_token_secret = 'doken' end end after(:each) do SurveyGizmo.reset! end it 'should allow changing user and pass' do # preload connection to verify that memoization is purged SurveyGizmo::Connection.send(:connection) SurveyGizmo.configure do |config| config.api_token = 'slimthug' config.api_token_secret = 'fourfourz' end expect(SurveyGizmo::Connection.send(:connection).params).to eq('api_token' => 'slimthug', 'api_token_secret' => 'fourfourz') end end
Version data entries
4 entries across 4 versions & 1 rubygems