Skip to content

Commit

Permalink
add the one40Proof gem to available services
Browse files Browse the repository at this point in the history
  • Loading branch information
reddavis committed Mar 21, 2010
1 parent e5f9885 commit 1d41eb5
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/twitterland.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,5 @@ def self.url_info(url)
require File.join(directory, 'twitterland', 'thumbfight')
require File.join(directory, 'twitterland', 'tweet_meme', 'stories')
require File.join(directory, 'twitterland', 'tweet_meme', 'comments')
require File.join(directory, 'twitterland', 'tweet_meme', 'analytics')
require File.join(directory, 'twitterland', 'tweet_meme', 'analytics')
require File.join(directory, 'twitterland', 'one40_proof')
8 changes: 8 additions & 0 deletions lib/twitterland/one40_proof.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
gem 'one40_proof'
require 'one40_proof/simple'

module TwitterLand
module One40Proof; end
end

TwitterLand::One40Proof.send(:include, One40Proof)
19 changes: 19 additions & 0 deletions test/twitterland/one40_proof_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
require File.dirname(__FILE__) + '/../test_helper'

class MrtweetTest < Test::Unit::TestCase
include Twitterland

context "One40Proof gem" do
should "give access to test API call" do
assert defined?(One40Proof::Test)
end

should "give access to the User API call" do
assert defined?(One40Proof::User)
end

should "give access to the Search API call" do
assert defined?(One40Proof::Search)
end
end
end

0 comments on commit 1d41eb5

Please sign in to comment.