A platform for community discussion. Free, open, simple.
Style fix for test
riking12e4dd59b75d
diff --git a/spec/models/user_profile_view_spec.rb b/spec/models/user_profile_view_spec.rbindex 108a5a7a5f2..75c235a3b23 100644--- a/spec/models/user_profile_view_spec.rb+++ b/spec/models/user_profile_view_spec.rb@@ -28,14 +28,13 @@ RSpec.describe UserProfileView doendend- it "should not create duplicated profile view for signed in user" do+ it "should not create duplicated profile view or log IP for signed in user" dotime = Time.zone.now['1.1.1.1', '2.2.2.2'].each do |ip|add(user_profile_id, ip, other_user.id, time)expect(described_class.count).to eq(1)- # should not actually log IPs- expect(UserProfileView.where(user_id: other_user.id).count(:ip_address)).to eq(0)+ expect(UserProfileView.find_by(user_id: other_user.id).ip_address).to eq(nil)endend