File: update.feature

package info (click to toggle)
sass-stylesheets-bourbon 7.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,000 kB
  • sloc: ruby: 1,381; javascript: 12; makefile: 2; sh: 1
file content (29 lines) | stat: -rw-r--r-- 1,137 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Feature: Update bourbon files

  Scenario: Updating updates an existing bourbon install
    Given bourbon is already installed
    When I write to "bourbon/_bourbon.scss" with:
      """
      foobar
      """
    And I run `bundle exec bourbon update`
    Then the output should contain "Bourbon files updated."
    And the file "bourbon/_bourbon.scss" should not contain "foobar"

  Scenario: Updating with a --path option
    Given I install bourbon to "custom_path"
    When I write to "custom_path/bourbon/_bourbon.scss" with:
      """
      foobar
      """
    And I run `bundle exec bourbon update`
    Then the output should contain "No existing bourbon installation. Doing nothing."

    When I run `bundle exec bourbon update --path custom_path`
    Then the output should contain "Bourbon files updated."
    And the file "custom_path/bourbon/_bourbon.scss" should not contain "foobar"

  Scenario: Updating does not generate a new bourbon install
    And I run `bundle exec bourbon update`
    Then bourbon should not have been generated
    And the output should contain "No existing bourbon installation. Doing nothing."