This is an example on how to mock a file with string.
Testing a function which opens a file and does some kind of operation on it.
#!/bin/bash - | |
#title :mkscript.sh | |
#description :This script will make a header for a bash script. | |
#author :bgw | |
#date :20111101 | |
#version :0.4 | |
#usage :bash mkscript.sh | |
#notes :Install Vim and Emacs to use this script. | |
#bash_version :4.1.5(1)-release | |
#============================================================================== |
from django.db import models | |
from django.core.cache import cache | |
class SingletonModel(models.Model): | |
class Meta: | |
abstract = True | |
def delete(self, *args, **kwargs): | |
pass |
gem: | |
--bindir ~/.local/bin | |
--no-ri --no-rdoc |