this is my first time using RubyMine and I can't make the Test Framework recognize the tests.
If I run the greed.rb
file it shows the result of the tests:
But if I run the tests it shows this:
I have read the question about minitest and tried to apply it to test-unit but it did not worked.
This is the content of my Gemfile
:
gem 'test-unit', '~> 3.0.8'
And this is part of the ruby class that contains the tests:
require 'test/unit'
def score(dice)
# code of the function
end
class Greed < Test::Unit::TestCase
def test_score_of_an_empty_list_is_zero
assert_equal 0, score([])
end
end
I'm probably missing something but I haven't been able to find a solution.