Sha256: 36407167f792482fe51053fb2f00d64bce4384b1f39914492bae9eeb4863a79d
Contents?: true
Size: 875 Bytes
Versions: 1
Compression:
Stored size: 875 Bytes
Contents
require File.expand_path('../test_assistant', __FILE__) require "digest/md5" module Pingpp class UserTest < Test::Unit::TestCase # should "execute should return a new user when passed correct parameters" do # user_id = Digest::MD5.hexdigest(Time.now.to_i.to_s)[0,12] # # params = { # :id => user_id # } # # u = Pingpp::User.create(params) # # assert u.object == 'user' # assert u.id == user_id # end should "execute should return an exist user when passed correct id" do u = Pingpp::User.retrieve(get_user_id) assert u.object == 'user' assert u.id == get_user_id end should "execute should return a list of users when passed correct parameters" do u = Pingpp::User.list(:per_page => 3) assert u.object == 'list' assert u.data.count <= 3 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pingpp-2.1.1 | test/user_test.rb |