refinery/refinerycms — pull request #2042 by parndt (2012-11-25 00:55:19+00:00)
Title: Refactored CLI override command to use Thor.

WARNING: The tests FAIL

This is because cli_spec.rb is testing the output of the `rake` command. I think this is silly.

If we're testing the CLI we should be testing the CLI class, not the `rake` command.

Permission to refactor [these specs](https://github.com/refinery/refinerycms/blob/a94c627d453609390fd39d5ed81bcf9598dc55d9/core/spec/lib/refinery/cli_spec.rb) to test the class instead?

Here's how you'd call it:

```ruby
Refinery::CLI.new.override({"view" => "_content_page"})
```

Seems better to me.

@robyurkowski @ugisozols Please give me your feedback.