Sha256: d611d81dcde342ff7662b0a86554b75095b62d02004793e311a27f479cfac417
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
require 'test/unit' require 'rubygems' require 'spec/test/unit' require 'koala' require 'koala/facebook_no_access_token_tests' require 'koala/facebook_with_access_token_tests' class FacebookTestSuite def self.suite suite = Test::Unit::TestSuite.new suite << FacebookNoAccessTokenTests.suite suite << FacebookWithAccessTokenTests.suite #suite << FacebookCookieTest.suite suite end end # load testing data (see note in readme.md) # I'm seeing a bug with spec and gets where the facebook_test_suite.rb file gets read in when gets is called # until that's solved, we'll need to store/update tokens in the access_token file $testing_data = YAML.load_file("facebook_data.yml") rescue {} unless $testing_data["oauth_token"] puts "Access token tests will fail until you store a valid token in facebook_data.yml" end # TODO finish tests for OAuth class # unless $testing_data["cookie_hash"] && $testing_data["app_id"] && $testing_data["secret"] # puts "Cookie tests will fail until you store valid data for the cookie hash, app_id, and app secret in facebook_data.yml" # end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
koala-0.4.1 | test/koala_tests.rb |