README.md in clintegracon-0.4.1 vs README.md in clintegracon-0.5.0
- old
+ new
@@ -1,10 +1,9 @@
# CLIntegracon
[](http://rubygems.org/gems/clintegracon)
[](https://travis-ci.org/mrackwitz/CLIntegracon)
-[](https://codeclimate.com/github/mrackwitz/CLIntegracon)
[](https://codeclimate.com/github/mrackwitz/CLIntegracon)
CLIntegracon allows you to build *Integration* specs for your *CLI*,
independent if they are based on Ruby or another technology.
It is especially useful if your command modifies the file system.
@@ -64,13 +63,20 @@
2. Setup the basic configuration and hook into Bacon as test framework:
```ruby
CLIntegracon.configure do |c|
- c.context.spec_path = File.expand_path('../integration', __FILE__)
- c.context.temp_path = File.expand_path('../../tmp', __FILE__)
+ c.spec_path = File.expand_path('../integration', __FILE__)
+ c.temp_path = File.expand_path('../../tmp', __FILE__)
+ # Ignore certain files ...
+ c.ignores '.gitkeep'
+
+ # ... or explicitly ignore all hidden files. (While the default is that they
+ # are included in the file tree diff.)
+ c.include_hidden_files = true
+
c.hook_into :bacon
end
```
3. Describe your specs with the extended DSL:
@@ -99,19 +105,10 @@
]
# Replace special paths in execution output by a placeholder, so that the
# compared outputs doesn't differ dependent on the absolute location where
# your tested CLI was executed.
- s.has_special_path ROOT.to_s, 'ROOT'
- end
-
- context do |c|
- # Ignore certain files ...
- c.ignores '.gitkeep'
-
- # ... or explicitly ignore all hidden files. (While the default is that they
- # are included in the file tree diff.)
- c.include_hidden_files = true
+ s.replace_path ROOT.to_s, 'ROOT'
end
describe 'Brew recipes' do
describe 'without milk' do