Skip to content

Commit

Permalink
Added test script with load paths
Browse files Browse the repository at this point in the history
  • Loading branch information
jjburka committed Mar 30, 2012
1 parent 2986a96 commit 34d870a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/lonely_coder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ def love(n=20)

require 'active_support/core_ext/string/inflections'

require './lonely_coder/magic_constants.rb'
require './lonely_coder/profile.rb'
require './lonely_coder/search.rb'
require './lonely_coder/search_pagination_parser.rb'
require './lonely_coder/authentication.rb'
require './lonely_coder/mailbox.rb'
require 'lonely_coder/magic_constants'
require 'lonely_coder/profile'
require 'lonely_coder/search'
require 'lonely_coder/search_pagination_parser'
require 'lonely_coder/authentication'
require 'lonely_coder/mailbox'
17 changes: 17 additions & 0 deletions test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
$LOAD_PATH << File.expand_path( File.dirname(__FILE__) + '/lib' )
$LOAD_PATH << File.expand_path( File.dirname(__FILE__) + '/lib/lonely_coder' )

require 'lonely_coder'

okc = OKCupid.new('archisextture','!eruttxesihcra!')
sweet_guys = []

search = okc.search({
:min_age => 18,
:max_age => 99,
:gentation => 'guys who like guys',
})

search.results().each do|result|
puts result.username;
end

0 comments on commit 34d870a

Please sign in to comment.