Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed minor coffeescript test failures. #124

Merged
merged 1 commit into from
Jan 9, 2012

Conversation

hannesg
Copy link
Contributor

@hannesg hannesg commented Jan 8, 2012

Hi
the coffeescript-tests seemed to fail for small things.
Could somebody please have a look at the "disabling coffee-script wrapper globally"-section?
As I read it, it was not disabling the wrapper globally.

Thanks

end

context "disabling coffee-script wrapper globally" do
setup do
@bare = Tilt::CoffeeScriptTemplate.default_bare
Tilt::CoffeeScriptTemplate.default_bare = true
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm. Strange. @josh Does this look right to you? Not sure how we missed that for so long.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've stared at this ~20 minutes and I guess it's true.

rtomayko added a commit that referenced this pull request Jan 9, 2012
Fixed minor coffeescript test failures.
@rtomayko rtomayko merged commit b9dc4e5 into rtomayko:master Jan 9, 2012
josh added a commit that referenced this pull request Jan 10, 2012
@josh
Copy link
Contributor

josh commented Jan 10, 2012

In coffee-script 1.2.0, the closure may not be generated if there are no global variables. So a simple case of puts "foo" won't trigger it. I updated the tests to force the closure by setting a var.

173ade0

@rtomayko
Copy link
Owner

Thanks.

@hannesg
Copy link
Contributor Author

hannesg commented Jan 11, 2012

+1 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants