ensure we have a bigint id

This commit is contained in:
Sam
2013-11-22 17:51:36 +11:00
parent b804f0bec9
commit 49b48e1eb6
2 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
require 'spec_helper'
describe TwitterUserInfo do
it "does not overflow" do
id = 22019458041
info = TwitterUserInfo.create!(user_id: -1, screen_name: 'sam', twitter_user_id: id)
info.reload
info.twitter_user_id.should == id
end
end