Fix rubocop nits
This commit is contained in:
parent
1e29d3f86f
commit
20cf1ac85b
|
@ -1,6 +1,8 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class RenameAppendableToReaction < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
rename_table :appendables, :reactions
|
||||
remove_column :reactions, :type
|
||||
remove_column :reactions, :type, :string
|
||||
end
|
||||
end
|
||||
|
|
|
@ -7,8 +7,8 @@ module UseCase
|
|||
"reactions.json" => json_file!(
|
||||
reactions: [
|
||||
*user.smiles.map(&method(:collect_reaction))
|
||||
]
|
||||
)
|
||||
],
|
||||
),
|
||||
}
|
||||
|
||||
def collect_reaction(reaction)
|
||||
|
|
|
@ -9,7 +9,7 @@ describe UseCase::DataExport::Reactions, :data_export do
|
|||
it "returns an empty set of reactions" do
|
||||
expect(json_file("reactions.json")).to eq(
|
||||
{
|
||||
reactions: []
|
||||
reactions: [],
|
||||
}
|
||||
)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue