gem 'json-ld-preloaded', '~> 3.0'
gem 'rdf-normalize', '~> 0.3'
+gem 'redcarpet', '~> 3.4'
+
group :development, :test do
gem 'fabrication', '~> 2.20'
- gem 'fuubar', '~> 2.4'
+ gem 'fuubar', '~> 2.5'
gem 'i18n-tasks', '~> 0.9', require: false
gem 'pry-byebug', '~> 3.7'
gem 'pry-rails', '~> 0.3'
end
def respond_with_error(code)
- respond_to do |format|
- format.any { head code }
-
- format.html do
- use_pack 'error'
- render "errors/#{code}", layout: 'error', status: code
- end
- end
++ use_pack 'error'
+ render "errors/#{code}", layout: 'error', status: code
end
end
- 'errors.429'
- 'admin.accounts.roles.*'
- 'admin.action_logs.actions.*'
+ - 'themes.*'
- 'statuses.attached.*'
+
+ ignore_inconsistent_interpolations:
+ - '*.one'
"@babel/plugin-transform-react-jsx-source": "^7.5.0",
"@babel/plugin-transform-runtime": "^7.5.5",
"@babel/preset-env": "^7.7.1",
- "@babel/preset-react": "^7.6.3",
- "@babel/runtime": "^7.7.1",
- "@clusterws/cws": "^0.15.2",
+ "@babel/preset-react": "^7.7.0",
+ "@babel/runtime": "^7.7.2",
+ "@clusterws/cws": "^0.16.0",
"array-includes": "^3.0.3",
+ "atrament": "^0.2.3",
"arrow-key-navigation": "^1.0.2",
"autoprefixer": "^9.6.1",
"axios": "^0.19.0",
"exif-js": "^2.3.0",
"express": "^4.17.1",
"file-loader": "^4.2.0",
+ "favico.js": "^0.3.10",
"font-awesome": "^4.7.0",
- "glob": "^7.1.5",
+ "glob": "^7.1.6",
"history": "^4.10.1",
"http-link-header": "^1.0.2",
"immutable": "^3.8.2",
end
end
+ describe 'with empty source list' do
+ before do
+ patch :update, params: {
+ display_name: "I'm a cat",
+ source: {},
+ }, as: :json
+ end
+
+ it 'returns http success' do
+ expect(response).to have_http_status(200)
+ end
+ end
+
describe 'with invalid data' do
before do
- patch :update, params: { note: 'This is too long. ' * 30 }
+ note = 'This is too long. '
+ note = note + 'a' * (Account::MAX_NOTE_LENGTH - note.length + 1)
+ patch :update, params: { note: note }
end
it 'returns http unprocessable entity' do