isolate builder relative feature
This commit is contained in:
parent
b133782395
commit
b5a9b78f42
|
@ -18,6 +18,6 @@ Feature: Builder
|
||||||
And cleanup built app at "test-app"
|
And cleanup built app at "test-app"
|
||||||
|
|
||||||
Scenario: Force relative assets
|
Scenario: Force relative assets
|
||||||
Given a built test app with flags "--relative"
|
Given a built app at "relative-app" with flags "--relative"
|
||||||
Then "stylesheets/relative_assets.css" should exist at "test-app" and include "../"
|
Then "stylesheets/relative_assets.css" should exist at "relative-app" and include "../"
|
||||||
And cleanup built app at "test-app"
|
And cleanup built app at "relative-app"
|
|
@ -13,9 +13,10 @@ Then /^cleanup built app at "([^"]*)"$/ do |path|
|
||||||
FileUtils.rm_rf(target)
|
FileUtils.rm_rf(target)
|
||||||
end
|
end
|
||||||
|
|
||||||
Given /^a built test app with flags "([^"]*)"$/ do |flags|
|
Given /^a built app at "([^"]*)" with flags "([^"]*)"$/ do |path, flags|
|
||||||
target = File.join(File.dirname(File.dirname(File.dirname(__FILE__))), "fixtures", "test-app")
|
root = File.dirname(File.dirname(File.dirname(__FILE__)))
|
||||||
build_cmd = File.expand_path(File.join(File.dirname(File.dirname(File.dirname(__FILE__))), "bin", "middleman build"))
|
target = File.join(root, "fixtures", path)
|
||||||
|
build_cmd = File.expand_path(File.join(root, "bin", "middleman build"))
|
||||||
`cd #{target} && #{build_cmd} #{flags}`
|
`cd #{target} && #{build_cmd} #{flags}`
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
0
fixtures/relative-app/config.rb
Normal file
0
fixtures/relative-app/config.rb
Normal file
BIN
fixtures/relative-app/source/images/blank.gif
Executable file
BIN
fixtures/relative-app/source/images/blank.gif
Executable file
Binary file not shown.
After Width: | Height: | Size: 43 B |
3
fixtures/relative-app/source/stylesheets/relative_assets.css.sass
Executable file
3
fixtures/relative-app/source/stylesheets/relative_assets.css.sass
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
@import "compass"
|
||||||
|
h1
|
||||||
|
background: image-url("blank.gif")
|
Loading…
Reference in a new issue