Sha256: 26ae91f001862829161aed55e33e8136e33678dbfd874a3e876e5da3d93635e6
Contents?: true
Size: 604 Bytes
Versions: 1
Compression:
Stored size: 604 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 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
survey-gizmo-ruby-6.0.2 | spec/configuration_spec.rb |