Skip to content

Commit

Permalink
test: use Regexp as receiver
Browse files Browse the repository at this point in the history
  • Loading branch information
Masafumi Yokoyama committed Feb 10, 2015
1 parent d81abfe commit a546bc2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/groonga-test-utils.rb
@@ -1,3 +1,4 @@
# Copyright (C) 2015 Masafumi Yokoyama <yokoyama@clear-code.com>
# Copyright (C) 2009-2014 Kouhei Sutou <kou@clear-code.com>
#
# This library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -166,7 +167,7 @@ def only_ruby19
end

def linux?
RUBY_PLATFORM =~ /linux/
/linux/ =~ RUBY_PLATFORM
end

def only_linux
Expand Down

0 comments on commit a546bc2

Please sign in to comment.