Skip to content
This repository has been archived by the owner on Sep 27, 2021. It is now read-only.

Acceptance test for version, w/custom matchers. #43

Merged
merged 1 commit into from
Dec 21, 2017

Conversation

nickcharlton
Copy link
Owner

This brings the first RSpec based acceptance test, focusing on
--version.

  • Runs inside spec/tmp.
  • Split from the main specs with Rake.
  • Provides the run_command method inside RSpec.
  • …which sets response as an object with the command response.
  • Provides write_to_stdout and have_exit_status matchers.
  • Implements a simple acceptance test for --version.

require "boxes/testing/matchers/have_exit_status_matcher"
require "boxes/testing/matchers/write_to_stdout_matcher"

def have_exit_status(status)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename have_exit_status to have_exit_status?.

This brings the first RSpec based acceptance test, focusing on
`--version`.

* Runs inside `spec/tmp`.
* Split from the main specs with Rake.
* Provides the `run_command` method inside RSpec.
* …which sets `response` as an object with the command response.
* Provides `write_to_stdout` and `have_exit_status` matchers.
* Implements a simple acceptance test for `--version`.
@nickcharlton nickcharlton force-pushed the rspec-for-acceptance-tests branch from b65b6ac to 6cbb0d8 Compare December 21, 2017 15:47
@nickcharlton nickcharlton merged commit 378fad2 into master Dec 21, 2017
@nickcharlton nickcharlton deleted the rspec-for-acceptance-tests branch December 21, 2017 15:56
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants