Steps to follow, Ref:
- Update Gemfile
bundle install
rails g rspec:install
- Edit
.rspec
Steps to follow, Ref:
bundle install
rails g rspec:install
.rspec
# Public Domain, i.e. feel free to copy/paste | |
# Considered a hack in Python 2 | |
import inspect | |
def caller_name(skip=2): | |
"""Get a name of a caller in the format module.class.method | |
`skip` specifies how many levels of stack to skip while getting caller | |
name. skip=1 means "who calls me", skip=2 "who calls my caller" etc. |
namespace 'librarian' do | |
# see https://github.com/applicationsonline/librarian-chef | |
desc "install cookbooks using librarian-chef" | |
task "update" do | |
# sh "librarian-chef update --verbose" | |
sh "librarian-chef update" | |
end | |
end |
#!/bin/bash | |
# 2009-04-09 tyler - use previously built packages as an apt source | |
# http://blog.edseek.com/~jasonb/articles/pbuilder_backports/pbuilderbuild.html#pbuilderhook | |
# | |
# Add this hook to ~/.pbuilder-hooks/D10apt-ftparchive and make it executable | |
# | |
echo Calling $0 | |
: ${DIST:=$(lsb_release --short --codename)} |
from django import forms | |
from django.core import validators | |
from django.core.exceptions import ValidationError | |
class MinLengthValidator(validators.MinLengthValidator): | |
message = 'Ensure this value has at least %(limit_value)d elements (it has %(show_value)d).' | |
class MaxLengthValidator(validators.MaxLengthValidator): | |
message = 'Ensure this value has at most %(limit_value)d elements (it has %(show_value)d).' |
// This file expects the specs to have the same name ending with '.spec.js' and to be in the same folder structure than the source | |
// Example: | |
// /app/assets/javascripts/models/todo.js | |
// /spec/javascripts/models/todo.spec.js | |
// It runs only the spec of the changed file or, if it's not found, runs the entire suite | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
jasmine: { | |
all: { |