- @commitlint/cli
- @commitlint/config-conventional
module.exports = {extends: ['@commitlint/config-conventional']}
it 'returns a 404 as http status' do | |
expect { get '/api/v1/teams/3' }.to raise_exception(ActiveRecord::RecordNotFound) | |
en |
{ | |
"terminal.integrated.fontSize": 14, | |
"workbench.iconTheme": "material-icon-theme", | |
"workbench.startupEditor": "newUntitledFile", | |
"editor.tabSize": 2, | |
"editor.fontSize": 14, | |
"editor.lineHeight": 26, | |
"editor.fontFamily": "cascadia code", |
# frozen_string_literal: true | |
# This file is copied to spec/ when you run 'rails generate rspec:install' | |
require 'spec_helper' | |
ENV['RAILS_ENV'] ||= 'test' | |
require File.expand_path('../config/environment', __dir__) | |
# Prevent database truncation if the environment is production | |
abort("The Rails environment is running in production mode!") if Rails.env.production? | |
require 'rspec/rails' | |
# Add additional requires below this line. Rails is not loaded until this point! |
const REQUESTING_DATA = 'REQUESTING_DATA' | |
const RECEIVED_DATA = 'RECEIVED_DATA' | |
const requestingData = () => { return {type: REQUESTING_DATA} } | |
const receivedData = (data) => { return {type: RECEIVED_DATA, users: data.users} } | |
const handleAsync = () => { | |
return function(dispatch) { | |
// dispatch request action here | |
dispatch(requestingData()) |
package main | |
import ( | |
"net/http" | |
"log" | |
"fmt" | |
) | |
func main() { | |
http.HandleFunc("/", func (w http.ResponseWriter,r *http.Request){ |
package main | |
import ( | |
"net/http" | |
"log" | |
"fmt" | |
) | |
func main() { | |
http.HandleFunc("/", func (w http.ResponseWriter,r *http.Request){ |
package main | |
import ( | |
"net/http" | |
) | |
func main(){ | |
http.ListenAndServe("localhost:3000",nil) | |
} |