Fix lint (#3342) [ci skip]
This commit is contained in:
parent
a1580b4bbf
commit
186e5bb52b
5 changed files with 7 additions and 6 deletions
2
Gemfile
2
Gemfile
|
|
@ -53,7 +53,7 @@ gem "gemoji", "~> 3.0.1" # Character information and metadata for standard and c
|
|||
gem "gibbon", "~> 3.2" # API wrapper for MailChimp's API
|
||||
gem "google-api-client", "~> 0.30" # Client for accessing Google APIs
|
||||
gem "html_truncator", "~> 0.4" # Truncate an HTML string properly
|
||||
gem 'htmlentities', '~> 4.3', '>= 4.3.4'
|
||||
gem "htmlentities", "~> 4.3", ">= 4.3.4"
|
||||
gem "httparty", "~> 0.16" # Makes http fun! Also, makes consuming restful web services dead easy
|
||||
gem "inline_svg", "~> 1.5" # Embed SVG documents in your Rails views and style them with CSS
|
||||
gem "jbuilder", "~> 2.9" # Create JSON structures via a Builder-style DSL
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ class ProfilePin < ApplicationRecord
|
|||
|
||||
validates :profile_id, presence: true
|
||||
validates :profile_type, inclusion: { in: %w[User] } # Future could be organization, tag, etc.
|
||||
validates :pinnable_id, presence: true, uniqueness: { scope: %i[profile_id profile_type pinnable_type]}
|
||||
validates :pinnable_id, presence: true, uniqueness: { scope: %i[profile_id profile_type pinnable_type] }
|
||||
validates :pinnable_type, inclusion: { in: %w[Article] } # Future could be comments, etc.
|
||||
validate :only_five_pins_per_profile
|
||||
validate :pinnable_belongs_to_profile
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
require 'rails_helper'
|
||||
require "rails_helper"
|
||||
|
||||
RSpec.describe ProfilePin, type: :model do
|
||||
let(:user) { create(:user) }
|
||||
|
|
|
|||
|
|
@ -263,7 +263,7 @@ RSpec.describe "Internal::Users", type: :request do
|
|||
it "add the proper amount of credits to a user" do
|
||||
put "/internal/users/#{super_admin.id}", params: {
|
||||
user: {
|
||||
add_credits: 5,
|
||||
add_credits: 5
|
||||
}
|
||||
}
|
||||
expect(super_admin.reload.credits_count).to eq 5
|
||||
|
|
@ -274,7 +274,7 @@ RSpec.describe "Internal::Users", type: :request do
|
|||
Credit.add_to(super_admin, 10)
|
||||
put "/internal/users/#{super_admin.id}", params: {
|
||||
user: {
|
||||
remove_credits: 5,
|
||||
remove_credits: 5
|
||||
}
|
||||
}
|
||||
expect(super_admin.reload.credits_count).to eq 5
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
require "rails_helper"
|
||||
include ActionView::Helpers::DateHelper
|
||||
|
||||
RSpec.describe "NotificationsIndex", type: :request do
|
||||
include ActionView::Helpers::DateHelper
|
||||
|
||||
let(:dev_account) { create(:user) }
|
||||
let(:user) { create(:user) }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue