spec/omniauth/strategies/twitter_spec.rb in omniauth-twitter-0.0.9 vs spec/omniauth/strategies/twitter_spec.rb in omniauth-twitter-0.0.10
- old
+ new
@@ -1,7 +1,21 @@
require 'spec_helper'
describe OmniAuth::Strategies::Twitter do
- it 'should do some testing' do
- pending
+ subject do
+ OmniAuth::Strategies::Twitter.new({})
+ end
+
+ context "client options" do
+ it 'should have correct name' do
+ subject.options.name.should eq("twitter")
+ end
+
+ it 'should have correct site' do
+ subject.options.client_options.site.should eq('https://api.twitter.com')
+ end
+
+ it 'should have correct authorize url' do
+ subject.options.client_options.authorize_path.should eq('/oauth/authenticate')
+ end
end
end