Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
36 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Feature: using Guard API | ||
|
||
In order to reuse existing Guard functionality | ||
As a user | ||
I want to call Guard API without Guard | ||
|
||
Background: Guard is installed through bundler | ||
Given my Gemfile includes "gem 'rake'" | ||
And Guard is bundled using source | ||
|
||
@spawn | ||
Scenario: Call notifier | ||
Given my Rakefile contains: | ||
""" | ||
require "bundler/setup" | ||
require "guard/notifier" | ||
task :default do | ||
Guard::Notifier.notify "foo", title: "bar" | ||
end | ||
""" | ||
Given I run `bundle exec rake` | ||
Then the output should match /\[bar\] foo/ |
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