trevmex's tumblings

JavaScripter, Rubyist, Functional Programmer, Agile Practitioner.


 ()
reblogged from badassjs
 ()
If no other knowledge deserves to be called useful but that which helps to enlarge our possessions or to raise our station in society, then mythology has no claim to the appellation. But if that which tends to make us happier and better can be called useful then we claim that epithet for our subject. For mythology is the handmaid of literature; and literature is one of the best allies of virtue and promoters of happiness. Thomas Bulfinch, “The Age of Fable,” Prefix
I made cookies! Look at me all domesticated-like.

I made cookies! Look at me all domesticated-like.

 ()
The sins of great personages have dire consequences for the innocent. “A Delicate Balance,” Fables 113, pg. 4
 ()
 ()

EnvJasmine 1.7 Released!

Thanks to the support of the EnvJasmine community we have a great new update. This one is especially useful for those of you running EnvJasmine in Maven or Rake and are integrating into a CI server like Jenkins!

Check out the latest repo at https://github.com/trevmex/EnvJasmine.

To see how to integrate EnvJasmine into your Maven workflow, try out the Maven example at https://github.com/trevmex/EnvJasmine-Maven-Example. After you clone the repo, run ./updateEnvJasmine.sh to get EnvJasmine, then mvn test to run your test.

EnvJasmine also works great in Rails. Check out the example at https://github.com/trevmex/EnvJasmine-Rails3-Example. Run ./updateEnvJasmine.sh to get EnvJasmine, bundle install, and rake (or bundle exec rake, if need be), and there you go!

Here is the change set for EnvJasmine 1.7. Enjoy!

  • Added the —incrementalOutput flag to allow output to show progress per file. This is useful when running EnvJasmine in Maven.
  • Changed the “Failed: 0” output to not be red (it only becomes red if there are failing tests, less distracting).
  • Fixed a bug where improper character encoding would cause EnvJasmine to report false results in different environments.
  • Added support to execute ./bin/run_test.sh with an absolute path to a spec file previously this only worked with relative paths).
  • Added the ability to define a custom EnvJasmine.reporterClass in your config file (include/dependencies.js) to overwrite the default RhinoReporter (Thanks jakul!).
  • Added an optional RhinoSpecReporter to jasmine-rhino-reporter.js (this is an example of how you can write your own reporters, thanks jakul!).
  • Updated the tutorial to include creating a custom config file (Thanks zdk!).
 ()
Rails’ controllers are like waiters in a restaurant. A customer orders a steak dinner from a waiter. The waiter takes the request and tells the kitchen that he needs a steak dinner. When the steak dinner is ready, the waiter delivers it to the customer for her enjoyment. Craig Demyanovich, from “The RSpec Book” by David Chelimsky, pg. 341