File: ruby-tests.rb

package info (click to toggle)
ruby-ruby2-keywords 0.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 84 kB
  • sloc: ruby: 33; makefile: 4
file content (16 lines) | stat: -rw-r--r-- 279 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require 'ruby2_keywords'
require 'minitest/autorun'
require 'minitest/spec'

class MyClass
  ruby2_keywords def to_array(*args)
    Array(args)
  end
end

describe 'ruby2_keywords' do
  it 'returns args' do
    r = MyClass.new.to_array(1, 2)
    _(r).must_equal [1, 2]
  end
end