spec/support/koala_test.rb in koala-1.2.1 vs spec/support/koala_test.rb in koala-1.3.0rc1

- old
+ new

@@ -2,10 +2,11 @@ module KoalaTest class << self attr_accessor :oauth_token, :app_id, :secret, :app_access_token, :code, :session_key attr_accessor :oauth_test_data, :subscription_test_data, :search_time + attr_accessor :test_user_api end # Test setup def self.setup_test_environment! @@ -157,26 +158,31 @@ Koala.http_service == Koala::MockHTTPService end # Data for testing def self.user1 + # user ID, either numeric or username test_user? ? @live_testing_user["id"] : "koppel" end def self.user1_id + # numerical ID, used for FQL + # (otherwise the two IDs are interchangeable) test_user? ? @live_testing_user["id"] : 2905623 end def self.user1_name "Alex" end def self.user2 + # see notes for user1 test_user? ? @live_testing_friend["id"] : "lukeshepard" end def self.user2_id + # see notes for user1 test_user? ? @live_testing_friend["id"] : 2901279 end def self.user2_name "Luke" @@ -184,6 +190,9 @@ def self.page "contextoptional" end + def self.app_properties + mock_interface? ? {"desktop" => 0} : {"description" => "A test framework for Koala and its users. (#{rand(10000).to_i})"} + end end