Skip to content

Collection of global rake files to help with setting up any dev environments (not specifically Ruby)

Notifications You must be signed in to change notification settings

scott-ad-riley/global-rakefiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

#Rakefiles

All files are split with a namespace, the initial commit contains a 'mt' (Minitest) namespace and some utility functions for it. That file is documented below (so you can do the same with others if you add them).

N.B. If you want to use arguments with rake tasks whilst using the oh-my-zsh terminal - you need to create an alias for the rake task. See here: ohmyzsh/ohmyzsh#433. In short, it means adding a new line with: alias rake='noglob rake' to your .zshrc file.

##namespace: mt

###setup

  • Creates a spec folder, and then creates the required spec files inside of that folder, based off of the models inside your models folder
  • Optionally takes a number of arguments that will be used to create your models first, then create the tests
    • Passed in like rake mt:setup[bear,fish,river]

###delete_specs

  • Deletes your specs/ folder (just runs rm -rf specs/ inside the task)

###delete_models

  • Deletes your models/ folder (just runs rm -rf models/ inside the task)

###run

  • Will loop over each .rb file in your specs folder and run them.

About

Collection of global rake files to help with setting up any dev environments (not specifically Ruby)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages