-
-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #244 from dg-ratiodata/feature/rspec_integration
Add rspec integrator
- Loading branch information
Showing
2 changed files
with
36 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
require 'rspec/core' | ||
require 'aruba/api' | ||
require 'aruba/reporting' | ||
|
||
RSpec.configure do |config| | ||
config.include Aruba::Api, type: :aruba | ||
|
||
config.before :each do | ||
next unless self.class.include?(Aruba::Api) | ||
|
||
restore_env | ||
clean_current_directory | ||
end | ||
|
||
# config.before do | ||
# next unless self.class.include?(Aruba::Api) | ||
|
||
# current_example = context.example | ||
|
||
# announcer.activate(:environment) if current_example.metadata[:announce_env] | ||
# announcer.activate(:command) if current_example.metadata[:announce_cmd] | ||
# announcer.activate(:directory) if current_example.metadata[:announce_dir] | ||
# announcer.activate(:stdout) if current_example.metadata[:announce_stdout] | ||
# announcer.activate(:stderr) if current_example.metadata[:announce_stderr] | ||
# end | ||
end |