Sha256: 559475ab2598e2dd50c9cd65c6b0c13b0733443b9470440432deb74f71bce5aa

Contents?: true

Size: 476 Bytes

Versions: 205

Compression:

Stored size: 476 Bytes

Contents

require_relative '../test_helper'

module Generator
  class ExerciseTest < Minitest::Test
    def test_slug
      exercise = Exercise.new(slug: 'alpha')
      assert_equal 'alpha', exercise.slug
    end

    def test_name
      exercise = Exercise.new(slug: 'alpha-beta')
      assert_equal 'alpha_beta', exercise.name
    end

    def test_case_class
      exercise = Exercise.new(slug: 'alpha-beta')
      assert_equal 'AlphaBetaCase', exercise.case_class
    end
  end
end

Version data entries

205 entries across 205 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/ruby/test/generator/exercise_test.rb
trackler-2.2.1.179 tracks/ruby/test/generator/exercise_test.rb
trackler-2.2.1.178 tracks/ruby/test/generator/exercise_test.rb
trackler-2.2.1.177 tracks/ruby/test/generator/exercise_test.rb
trackler-2.2.1.176 tracks/ruby/test/generator/exercise_test.rb
trackler-2.2.1.175 tracks/ruby/test/generator/exercise_test.rb
trackler-2.2.1.174 tracks/ruby/test/generator/exercise_test.rb
trackler-2.2.1.173 tracks/ruby/test/generator/exercise_test.rb
trackler-2.2.1.172 tracks/ruby/test/generator/exercise_test.rb
trackler-2.2.1.171 tracks/ruby/test/generator/exercise_test.rb
trackler-2.2.1.170 tracks/ruby/test/generator/exercise_test.rb
trackler-2.2.1.169 tracks/ruby/test/generator/exercise_test.rb
trackler-2.2.1.167 tracks/ruby/test/generator/exercise_test.rb
trackler-2.2.1.166 tracks/ruby/test/generator/exercise_test.rb
trackler-2.2.1.165 tracks/ruby/test/generator/exercise_test.rb
trackler-2.2.1.164 tracks/ruby/test/generator/exercise_test.rb
trackler-2.2.1.163 tracks/ruby/test/generator/exercise_test.rb
trackler-2.2.1.162 tracks/ruby/test/generator/exercise_test.rb
trackler-2.2.1.161 tracks/ruby/test/generator/exercise_test.rb
trackler-2.2.1.160 tracks/ruby/test/generator/exercise_test.rb