test/test_wherex.rb in wherex-1.0.6 vs test/test_wherex.rb in wherex-1.0.7
- old
+ new
@@ -1,11 +1,11 @@
require 'helper'
class TestWherex < Test::Unit::TestCase
def test_user_example
assert u = User.where( :zipcode => /^9[345][0-9]{3}$/ )
- assert_equal 3, u.count
+ assert_equal 3, u.count
[:two, :three, :four ].each do |id|
assert u.include?( users(id) )
end
end
@@ -19,10 +19,10 @@
end
def test_student_example
assert s = Student.all( :conditions => { :name => /[^a-zA-Z ]/ } )
assert_equal 3, s.count
- [ :two, :three, :four ].each do |id|
+ [ :two, :three, :four ].each do |id|
assert s.include?( students(id) )
end
end
end