File: api.feature

package info (click to toggle)
ruby-guard 2.18.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,344 kB
  • sloc: ruby: 9,256; makefile: 6
file content (23 lines) | stat: -rw-r--r-- 558 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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\nfoo/