discourse/spec/models/twitter_user_info_spec.rb

11 lines
259 B
Ruby
Raw Normal View History

require 'rails_helper'
2013-11-22 00:51:36 -06:00
describe TwitterUserInfo do
it "does not overflow" do
2017-07-27 20:20:09 -05:00
id = 22019458041
2013-11-22 00:51:36 -06:00
info = TwitterUserInfo.create!(user_id: -1, screen_name: 'sam', twitter_user_id: id)
info.reload
expect(info.twitter_user_id).to eq(id)
2013-11-22 00:51:36 -06:00
end
end