guard / guard-rspec

Guard::RSpec automatically run your specs (much like autotest)
https://rubygems.org/gems/guard-rspec
MIT License
1.31k stars 241 forks source link

Error outside of examples is not reflected in notification #398

Open wnuqui opened 7 years ago

wnuqui commented 7 years ago

Steps to recreate

  1. Generate a gem skeleton via bundle. (A simple app with a Gemfile is also usable but you need to compose your own app structure.)
  2. 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.)
  3. Add passing examples.
  4. 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:

guard-rspec-current-notification

Expected Behavior

System configuration