Skip to content

Update Ruby versions on Travis CI #553

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

Merged
merged 3 commits into from
Apr 22, 2018

Conversation

htwroclau
Copy link
Contributor

I try to update Ruby versions on Travis CI.

However, as test errors occurred, I also addressed the following.

  • Fix assert_match error of 'should unbind mustache templates' in HjsTemplateTest
  • Modify VCR hook_info to faraday for InstallGeneratorTest of jruby test error

@htwroclau htwroclau force-pushed the update_ruby_versions branch from f4b22ff to 3a3adad Compare April 8, 2018 10:18
@locks locks requested a review from tricknotes April 22, 2018 14:51
Copy link
Member

@tricknotes tricknotes left a comment

Choose a reason for hiding this comment

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

@htwroclau
Thanks for your contribution and sorry for my late :<
This PR seems great 💚

NOTE: I left some comments. If you are interested in it, please teach me what happened in webmock :-)

@@ -19,7 +19,7 @@ def copy_directory(dir)
def set_test_environment
VCR.configure do |c|
c.cassette_library_dir = 'test/fixtures/vcr_cassettes'
c.hook_into :webmock # or :fakeweb
c.hook_into :faraday # or :webmock or :fakeweb
Copy link
Member

Choose a reason for hiding this comment

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

Hmm, perhaps it seems a webmock issue on jRuby.
However I'm not sure why the following tests are failed.
https://travis-ci.org/emberjs/ember-rails/jobs/363684591

@@ -24,6 +24,7 @@ Gem::Specification.new do |s|
s.add_dependency "ember-cli-assets", "~> 0.0.1"

s.add_development_dependency "bundler", [">= 1.2.2"]
s.add_development_dependency "faraday"
Copy link
Member

Choose a reason for hiding this comment

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

I prefer not adding a new dependency.
But it makes sense to pass ember-rails tests.

@@ -28,7 +28,7 @@ class HjsTemplateTest < IntegrationTest
get "/assets/templates/hairy.js"
assert_response :success
assert_match %r{Ember\.TEMPLATES\["hairy(\.mustache)?"\] = Ember\.(?:Handlebars|HTMLBars)\.template\(}m, @response.body
assert_match %r{function .*unbound|"name":"unbound"|\[\\"unbound\\"\]}m, @response.body
assert_match %r{.*unbound|"name":"unbound"|\[\\"unbound\\"\]}m, @response.body
Copy link
Member

Choose a reason for hiding this comment

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

I see.
Some update in ember-source may change the templates.

@tricknotes tricknotes merged commit 3ff4532 into emberjs:master Apr 22, 2018
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.

2 participants