Permalink
Browse files

Fix a core spec failure on JRuby 1.7

My guess is be_a_kind_of doesn't end up getting defined in
BasicObject on JRuby 1.7, causing this spec to fail.  So
tweak things slightly so it passes there.
  • Loading branch information...
1 parent 0391d18 commit c75082d5a51ae61458dc4ed1bc40db67f7b75fed @jeremyevans committed Oct 22, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/core/expression_filters_spec.rb
@@ -551,8 +551,8 @@ def l(arg, should)
Sequel.expr({1=>2}).should be_a_kind_of(Sequel::SQL::BooleanExpression)
Sequel.expr([[1, 2]]).should be_a_kind_of(Sequel::SQL::BooleanExpression)
Sequel.expr([1]).should be_a_kind_of(Sequel::SQL::Wrapper)
- Sequel.expr{|o| o.should be_a_kind_of(Sequel::SQL::VirtualRow)}
- Sequel.expr{self.should be_a_kind_of(Sequel::SQL::VirtualRow)}
+ Sequel.expr{|o| o.a}.should be_a_kind_of(Sequel::SQL::Identifier)
+ Sequel.expr{a}.should be_a_kind_of(Sequel::SQL::Identifier)
Sequel.expr(:a).should be_a_kind_of(Sequel::SQL::Identifier)
Sequel.expr(:a__b).should be_a_kind_of(Sequel::SQL::QualifiedIdentifier)
Sequel.expr(:a___c).should be_a_kind_of(Sequel::SQL::AliasedExpression)

0 comments on commit c75082d

Please sign in to comment.