require_relative '../lib/abcing/colour_alphabet_result.rb'

describe ABCing::ColourAlphabetResult do
  it 'finds tested class letters' do
    params = {
      test_letters: ['A', 'B'],
      app_letters: ['A', 'B']
    }

    result = ABCing::ColourAlphabetResult.new(params).calculate
    expect(result).to include(A: :green, B: :green)
  end

  it 'does not find a test for a class letter' do
    params = {
      test_letters: ['A'],
      app_letters: ['A', 'B']
    }

    result = ABCing::ColourAlphabetResult.new(params).calculate
    expect(result).to include(A: :green, B: :red)
  end
end

require_relative '../lib/abcing/colour_alphabet_result.rb'

describe ABCing::ColourAlphabetResult do
  it 'finds tested class letters' do
    params = {
      test_letters: ['A', 'B'],
      app_letters: ['A', 'B']
    }

    result = ABCing::ColourAlphabetResult.new(params).calculate
    expect(result).to include(A: :green, B: :green)
  end

  it 'does not find a test for a class letter' do
    params = {
      test_letters: ['A'],
      app_letters: ['A', 'B']
    }

    result = ABCing::ColourAlphabetResult.new(params).calculate
    expect(result).to include(A: :green, B: :red)
  end

  it 'does not find an application class or test class from the letter of the alphabet' do
    params = {
      test_letters: [],
      app_letters: []
    }

    result = ABCing::ColourAlphabetResult.new(params).calculate
    expect(result).to include(A: :yellow, B: :yellow)
  end


end

Test for not finding class or test results and marking them yellow
Test for not finding class or test results and marking them yellow
