public
Description: Ruby library for utilizing Gnip services.
Homepage: http://gnipcentral.com
Clone URL: git://github.com/gnip/gnip-ruby.git
ahoward (author)
Wed Jun 10 07:57:27 -0700 2009
commit  d81d6fa66db5d5ecb9d8ec8797ccfe95b19eb69b
tree    6ebb64a4afce0a942f452a9781f3971eb4c35c03
parent  cd8bc48a8816a01417ebd9e115a1d35b3f5680ce
gnip-ruby / test / integration / auth.rb
100644 13 lines (11 sloc) 0.334 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
Class.new(Test::Unit::TestCase) do
  context 'with username and password configured' do
    setup do
      assert( Gnip.username = ENV['GNIP_USERNAME'] )
      assert( Gnip.password = ENV['GNIP_PASSWORD'] )
    end
 
    should 'be able to do an authenticated ping' do
      assert_nothing_raised{ assert Gnip.ping }
    end
  end
end