Sha256: 4864319a6ad5f3fa46cfbefab98ee50b96a4d73eec0c8894f53aa2d4bd5c9e84

Contents?: true

Size: 477 Bytes

Versions: 1

Compression:

Stored size: 477 Bytes

Contents

require 'minitest/autorun'
require 'minitest/rg'
require 'yaml'
require './lib/codebadges.rb'

test_courses = YAML.load(File.read('spec/fixtures/courses.yml'))

courses = CodeBadges::GetCodecademyCourses.call

describe 'Find all test courses' do
  it 'has the right number of badges' do
    courses.size.wont_be :<, test_courses.size
  end

  test_courses.map do |course_name|
    it "finds course '#{course_name}'" do
      courses.keys.include? course_name
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
codebadges-3.0.0 spec/courses_spec.rb