Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Run CI against rails master #32

Merged
merged 2 commits into from
Dec 1, 2016
Merged

Run CI against rails master #32

merged 2 commits into from
Dec 1, 2016

Conversation

kmcphillips
Copy link
Member

@@ -4,11 +4,14 @@ cache: bundler
rvm:
- 2.1.8
- 2.2.4
- 2.3.0
- 2.3.1
Copy link
Member Author

Choose a reason for hiding this comment

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

This is a much more used Ruby version I think. And it's what we use primarily right now.

@@ -329,7 +329,7 @@ class Measured::Rails::ActiveRecordTest < ActiveSupport::TestCase
end

test "assigning a number with more significant digits than permitted by the column precision does not raise exception when it can be rounded to have lesser significant digits per column's scale" do
assert_nothing_raised Measured::Rails::Error do
assert_nothing_raised do
Copy link
Member Author

Choose a reason for hiding this comment

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

This was a legit failure. There was two definitions of this method before, one took (*args) and ignored them. This is the correct syntax now.

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we remove assert_nothing_raised now, and let unexpected exceptions bubble up to the test runner?

@sgrif
Copy link

sgrif commented Dec 1, 2016

All the same comments as Shopify/active_shipping#424 for this one

@kmcphillips
Copy link
Member Author

Removed branch reference. I'm not too worried about allowed failures. We should fix the things that break as they break.

matrix:
exclude:
- gemfile: Gemfile
rvm: 2.1.8
- gemfile: gemfiles/rails-master.gemfile
rvm: 2.1.8
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason we're not excluding gemfiles/rails-4.2.gemfile? If we were, we could just drop 2.1.8.

Copy link
Member Author

Choose a reason for hiding this comment

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

Because we want to support lower versions of ruby. But we have to exclude it from rails 5+ as rails 5 needs ruby 2.2.2 or higher.

Copy link
Contributor

Choose a reason for hiding this comment

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

Okay, so we're still testing our code with 2.1.8, just using another gemfile. I wasn't 100% sure how it all worked but I grok it now. Thanks :)

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah! It takes the matrix of all gemfiles and all ruby versions, except for these combinations that we manually exclude because they are invalid.

@@ -329,7 +329,7 @@ class Measured::Rails::ActiveRecordTest < ActiveSupport::TestCase
end

test "assigning a number with more significant digits than permitted by the column precision does not raise exception when it can be rounded to have lesser significant digits per column's scale" do
assert_nothing_raised Measured::Rails::Error do
assert_nothing_raised do
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we remove assert_nothing_raised now, and let unexpected exceptions bubble up to the test runner?

@kmcphillips
Copy link
Member Author

I have no strong feelings about assert_nothing_raised. It mostly just gives a line in a stacktrace. https://github.com/rails/rails/blob/92703a9ea5d8b96f30e0b706b801c9185ef14f0e/activesupport/lib/active_support/testing/assertions.rb#L29-L31

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

Successfully merging this pull request may close these issues.

None yet

3 participants