Generate a gem skeleton via bundle. (A simple app with a Gemfile is also usable but you need to compose your own app structure.)
Setup guard-rspec and terminal notification. (As this is setup Mac OS, terminal-notifier and terminal-notifier-guard are used. Use corresponding gems for non Mac OS setups.)
Add passing examples.
Then, add an example that will not yet fail/pass due to an error. Say you have an Arithmeter module and you wish to add Util module under it. Example:
require "spec_helper"
describe Arithmeter::Util do
it "is true" do
expect(true).to eq(true)
end
end
Note: You can just clone this repo and just do last step (No. 4).
Current Behavior
After following recreate steps above:
There is a notification displayed but it is not for error.
It just notifies that there are 0 examples, 0 failures in x seconds, and
The icon implies that test is a success.
Expected Behavior
It should notify that there is an error and examples are not run.
It should not notify about number of examples and failures.
Steps to recreate
Arithmeter
module and you wish to addUtil
module under it. Example:Note: You can just clone this repo and just do last step (No. 4).
Current Behavior
After following recreate steps above:
0 examples, 0 failures in x seconds
, andExpected Behavior
System configuration