refinery/refinerycms — pull request #1969 by ugisozols (2012-09-26 13:03:47+00:00)
Title: Add check to extension generator which checks if extension specified by --extension option actually exist. 

#1967

Unfortunately I wasn't able to figure out a good way to capture messages so that's why I'm only testing for SystemExit.

I tried using:
```
output = `rails g refinery:engine name ...`
output.should eq("message ...")
```
but it increases spec time quite a lot.