File tree 5 files changed +21
-21
lines changed
5 files changed +21
-21
lines changed Original file line number Diff line number Diff line change 1
1
@disable-bundler
2
- Feature : Generate bourbon files
2
+ Feature : Install bourbon files
3
3
4
4
Scenario : Bourbon generates a new bourbon installation
5
- When I generate bourbon files
5
+ When I install bourbon files
6
6
Then the sass directories should have been generated
7
7
And the following directories should exist:
8
8
| bourbon |
9
9
| bourbon /lib |
10
10
And the master bourbon partial should have been generated
11
11
And the lib files should have been generated
12
- And the output should contain "Bourbon files generated to bourbon/"
12
+ And the output should contain "Bourbon files installed to bourbon/"
13
13
14
14
Scenario : Generating does not overwrite an existing bourbon directory
15
- Given bourbon is already generated
16
- When I generate bourbon files
17
- Then the output should contain "Bourbon files already generated , doing nothing."
15
+ Given bourbon is already installed
16
+ When I install bourbon files
17
+ Then the output should contain "Bourbon files already installed , doing nothing."
Original file line number Diff line number Diff line change 1
- Given /^bourbon is already generated $/ do
1
+ Given /^bourbon is already installed $/ do
2
2
set_up_bourbon_directory
3
- generate_bourbon
3
+ install_bourbon
4
4
end
5
5
6
- When /^I generate bourbon files$/ do
6
+ When /^I install bourbon files$/ do
7
7
set_up_bourbon_directory
8
- generate_bourbon
8
+ install_bourbon
9
9
end
10
10
11
11
When /^I update bourbon files$/ do
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ def set_up_bourbon_directory
4
4
run_simple ( "bundle install" )
5
5
end
6
6
7
- def generate_bourbon
8
- run_simple ( "bundle exec bourbon generate " )
7
+ def install_bourbon
8
+ run_simple ( "bundle exec bourbon install " )
9
9
end
10
10
11
11
def update_bourbon
Original file line number Diff line number Diff line change 2
2
Feature : Update bourbon files
3
3
4
4
Scenario : Updating updates an existing bourbon install
5
- When I generate bourbon files
5
+ When I install bourbon files
6
6
And I write to "bourbon/_bourbon.scss" with:
7
7
"""
8
8
foobar
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ def initialize(arguments)
7
7
end
8
8
9
9
def run
10
- if @subcommand == "generate "
11
- generate
10
+ if @subcommand == "install "
11
+ install
12
12
elsif @subcommand == "update"
13
13
update
14
14
end
@@ -17,19 +17,19 @@ def run
17
17
def update
18
18
if bourbon_files_already_exist?
19
19
remove_bourbon_directory
20
- generate_files
20
+ install_files
21
21
puts "Bourbon files updated."
22
22
else
23
23
puts "No existing bourbon installation. Doing nothing."
24
24
end
25
25
end
26
26
27
- def generate
27
+ def install
28
28
if bourbon_files_already_exist?
29
- puts "Bourbon files already generated , doing nothing."
29
+ puts "Bourbon files already installed , doing nothing."
30
30
else
31
- generate_files
32
- puts "Bourbon files generated to bourbon/"
31
+ install_files
32
+ puts "Bourbon files installed to bourbon/"
33
33
end
34
34
end
35
35
@@ -39,7 +39,7 @@ def bourbon_files_already_exist?
39
39
Dir . exist? ( "bourbon" )
40
40
end
41
41
42
- def generate_files
42
+ def install_files
43
43
make_lib_directory
44
44
copy_in_sass_extensions
45
45
copy_in_scss_files
You can’t perform that action at this time.
0 commit comments