Skip to content

Commit

Permalink
Fix failing unit tests. How did I let those through. (slaps own hand)
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Jolley committed Aug 25, 2009
1 parent a386e07 commit d4340a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/lib/builders/html_spec.rb
Expand Up @@ -431,10 +431,12 @@ def expect_scripts(result, urls = [])
it "adds link to debug JS if CONFIG.load_debug = true" do
# figure expected urls...
t = @project.target_for(:debug)
t.config.combine_javascript = true
url = t.manifest_for(:language => :en).build!.entry_for('javascript.js').url
url = /#{Regexp.escape url}/

@target.config.combine_javascript = true

@target.config.load_debug = true
result = @builder.javascripts_for_client
result.should =~ url
Expand Down
1 change: 1 addition & 0 deletions spec/lib/builders/test_spec.rb
Expand Up @@ -62,6 +62,7 @@
it "adds javascript for test" do
# figure expected urls...
t = @project.target_for(:qunit)
t.config.combine_javascript = true
url = t.manifest_for(:language => :en).build!.entry_for('javascript.js').url
url = /#{Regexp.escape url}/

Expand Down
1 change: 1 addition & 0 deletions spec/lib/models/manifest/add_transform_spec.rb
Expand Up @@ -15,6 +15,7 @@
:source_path => File.join('source', 'foobar.js'),
:build_path => File.join('build', 'foobar.js'),
:staging_path => File.join('staging', 'foobar.js'),
:cache_path => File.join('cache', 'foobar.js'),
:url => File.join('url', 'foobar.js')
end

Expand Down

0 comments on commit d4340a8

Please sign in to comment.