spec/omniauth/strategies/github_spec.rb in omniauth-github-1.0.1 vs spec/omniauth/strategies/github_spec.rb in omniauth-github-1.0.2
- old
+ new
@@ -1,7 +1,21 @@
require 'spec_helper'
describe OmniAuth::Strategies::GitHub do
- it 'should do some testing' do
- pending
+ subject do
+ OmniAuth::Strategies::GitHub.new({})
+ end
+
+ context "client options" do
+ it 'should have correct site' do
+ subject.options.client_options.site.should eq("https://api.github.com")
+ end
+
+ it 'should have correct authorize url' do
+ subject.options.client_options.authorize_url.should eq('https://github.com/login/oauth/authorize')
+ end
+
+ it 'should have correct token url' do
+ subject.options.client_options.token_url.should eq('https://github.com/login/oauth/access_token')
+ end
end
end