Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
set dependencies for sprockets to invalidate caches; fixes #25
- Loading branch information
1 parent
d919bdd
commit 07f4956
Showing
4 changed files
with
61 additions
and
12 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
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,19 @@ | ||
require 'test_helper' | ||
require 'tilt' | ||
|
||
describe "Sprockets integration" do | ||
|
||
describe "sprockets should know when to invalidate cache" do | ||
template = Tilt.new('test/fixtures/standalone/styleguide.html.lsg') | ||
context = Minitest::Mock.new | ||
%w(style.scss modules/_buttons.scss modules/_buttons.md styleguide.html.lsg).each do |file| | ||
context.expect :depend_on, nil, ["test/fixtures/standalone/#{file}"] | ||
end | ||
|
||
template.render context | ||
|
||
context.verify | ||
end | ||
|
||
end | ||
|