Skip to content

Automatically convert Mocha syntax to rspec-mocks

Notifications You must be signed in to change notification settings

paulsturgess/decaf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Decaf

Automatically converts Mocha stubbing and mock syntax to rspec-mocks syntax.

Whilst this script covers most cases it's not perfect. PR's welcome!

Warning: best used with version control! Running this script will overwrite the files!

Run the tests via:

bundle exec rspec spec

Update your files via:

DIRECTORY="/path/to/directory" bundle exec run.rb

About

Automatically convert Mocha syntax to rspec-mocks

Topics

Resources

Stars

Watchers

Forks

Languages