Skip to content

Commit

Permalink
make sure there are actually some categories when running the test
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Aug 29, 2013
1 parent 44046d0 commit c975da9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def test_pk_is_not_required_for_join
post = Post.includes(:scategories).first post = Post.includes(:scategories).first
post2 = Post.includes(:categories).first post2 = Post.includes(:categories).first


assert_operator post.categories.length, :>, 0
assert_equal post2.categories, post.categories assert_equal post2.categories, post.categories
end end


Expand Down

4 comments on commit c975da9

@carlosantoniodasilva
Copy link
Member

Choose a reason for hiding this comment

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

@tenderlove hey bro, this seems to have failed in travis, mind taking a look? :)

@tenderlove
Copy link
Member Author

Choose a reason for hiding this comment

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

double you tee ef. Yes.

@tenderlove
Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed in ffa56f7

@carlosantoniodasilva
Copy link
Member

Choose a reason for hiding this comment

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

💚💛❤️💙💜

Please sign in to comment.