Sha256: 532a2431a04f626675af46dd896f82ec458d12cb2fb35046d892bdf3aad2b3c1
Contents?: true
Size: 1.22 KB
Versions: 3
Compression:
Stored size: 1.22 KB
Contents
require 'spec_helper' describe 'Smoke test SSL conections' do before do @app_host = 'getsatisfaction.com' @api_host = 'api.getsatisfaction.com' FakeWeb.clean_registry FakeWeb.allow_net_connect = true end shared_examples_for 'get' do it 'should get the first page of getsat topics' do results = @sfn.companies['getsatisfaction'].topics.page(1, :limit => 10) results.items.size.should == 10 end end context 'over ssl' do before do @sfn = Satisfaction.new( :root => "https://#{@api_host}", :autoload => false, :request_token_url => "https://#{@app_host}/api/request_token", :access_token_url => "https://#{@app_host}/api/access_token", :authorize_url => "https://#{@app_host}/api/authorize" ) end it_should_behave_like 'get' end context 'not over ssl' do before do @sfn = Satisfaction.new( :root => "http://#{@api_host}", :autoload => false, :request_token_url => "http://#{@app_host}/api/request_token", :access_token_url => "http://#{@app_host}/api/access_token", :authorize_url => "http://#{@app_host}/api/authorize" ) end it_should_behave_like 'get' end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ruby-satisfaction-0.7.5 | spec/integration_spec.rb |
ruby-satisfaction-0.7.4 | spec/integration_spec.rb |
ruby-satisfaction-0.7.3 | spec/integration_spec.rb |