mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-05-11 18:11:33 +08:00
15 lines
388 B
Ruby
15 lines
388 B
Ruby
require 'test_helper'
|
|
|
|
class UserTest < ActiveSupport::TestCase
|
|
# Replace this with your real tests.
|
|
test "the truth" do
|
|
assert true
|
|
end
|
|
|
|
test "to_json should only include basic attributes" do
|
|
user = User.new(:username => 'restkit', :email => 'restkit@restkit.org')
|
|
attributes = ActiveSupport::JSON.decode(user.to_json)['user']
|
|
puts attributes.inspect
|
|
end
|
|
end
|