forked from thoughtbot/bourbon
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Users can update their existing bourbon installation.
- Loading branch information
Gabe Berke-Williams
committed
Jan 20, 2012
1 parent
04c9e21
commit bf34e70
Showing
6 changed files
with
32 additions
and
6 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 |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
bourbon/ | ||
demo/ | ||
tmp/ | ||
tags |
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
|
||
require "bourbon" | ||
|
||
Bourbon::Generator.new.generate | ||
Bourbon::Generator.new(ARGV).run |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@disable-bundler | ||
Feature: Update bourbon files | ||
|
||
Scenario: `bourbon update` updates an existing bourbon install | ||
When I generate bourbon files | ||
And I write to "bourbon/_bourbon.scss" with: | ||
""" | ||
foobar | ||
""" | ||
And I update bourbon files | ||
Then the output should contain "Bourbon files updated." | ||
And the file "bourbon/_bourbon.scss" should not contain "foobar" | ||
|
||
Scenario: `bourbon update` does not generate a new bourbon install | ||
When I update bourbon files | ||
Then bourbon should not have been generated | ||
And the output should contain "No existing bourbon installation. Doing nothing." |