mirror of
https://github.com/wahyd4/ocelots.git
synced 2026-08-15 16:06:15 +10:00
20 lines
746 B
Ruby
20 lines
746 B
Ruby
require 'spec_helper'
|
|
|
|
describe Google::APIClient do
|
|
describe :build do
|
|
it 'builds google api client for localhost' do
|
|
client = Google::APIClient.build
|
|
client.authorization.redirect_uri.to_s.should == 'http://localhost:3000/home/verify_g_callback'
|
|
end
|
|
|
|
it 'builds google api client for staging' do
|
|
client = Google::APIClient.build('ocelots-staging.herokuapp.com')
|
|
client.authorization.redirect_uri.to_s.should == 'http://ocelots-staging.herokuapp.com/home/verify_g_callback'
|
|
end
|
|
|
|
it 'builds google api client for production' do
|
|
client = Google::APIClient.build('iocelots.com')
|
|
client.authorization.redirect_uri.to_s.should == 'http://iocelots.com/home/verify_g_callback'
|
|
end
|
|
end
|
|
end |