discourse/spec/models/twitter_user_info_spec.rb

11 lines
260 B
Ruby
Raw Normal View History

2016-04-01 05:33:25 +08:00
require 'rails_helper'
2013-11-22 14:51:36 +08:00
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
expect(info.twitter_user_id).to eq(id)
2013-11-22 14:51:36 +08:00
end
end