twitter-auth 0.1.13 → 0.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  require File.dirname(__FILE__) + '/spec_helper'
2
2
 
3
3
  describe TwitterAuth do
4
- describe '#base_url' do
4
+ describe '.base_url' do
5
5
  it 'should have default to https://twitter.com' do
6
6
  TwitterAuth.stub!(:config).and_return({})
7
7
  TwitterAuth.base_url.should == 'https://twitter.com'
@@ -13,6 +13,18 @@ describe TwitterAuth do
13
13
  end
14
14
  end
15
15
 
16
+ describe ".path_prefix" do
17
+ it 'should be blank if the base url does not have a path' do
18
+ TwitterAuth.stub!(:base_url).and_return("https://twitter.com:443")
19
+ TwitterAuth.path_prefix.should == ""
20
+ end
21
+
22
+ it 'should return the path prefix if one exists' do
23
+ TwitterAuth.stub!(:base_url).and_return("https://api.presentlyapp.com/api/twitter")
24
+ TwitterAuth.path_prefix.should == "/api/twitter"
25
+ end
26
+ end
27
+
16
28
  describe '.api_timeout' do
17
29
  it 'should default to 10' do
18
30
  TwitterAuth.stub!(:config).and_return({})
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitter-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bleigh