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.139 tracks/ruby/test/generator/exercise_test.rb
trackler-2.2.1.138 tracks/ruby/test/generator/exercise_test.rb
trackler-2.2.1.137 tracks/ruby/test/generator/exercise_test.rb
trackler-2.2.1.136 tracks/ruby/test/generator/exercise_test.rb
trackler-2.2.1.135 tracks/ruby/test/generator/exercise_test.rb
trackler-2.2.1.134 tracks/ruby/test/generator/exercise_test.rb
trackler-2.2.1.133 tracks/ruby/test/generator/exercise_test.rb
trackler-2.2.1.132 tracks/ruby/test/generator/exercise_test.rb
trackler-2.2.1.131 tracks/ruby/test/generator/exercise_test.rb
trackler-2.2.1.130 tracks/ruby/test/generator/exercise_test.rb
trackler-2.2.1.129 tracks/ruby/test/generator/exercise_test.rb
trackler-2.2.1.128 tracks/ruby/test/generator/exercise_test.rb
trackler-2.2.1.127 tracks/ruby/test/generator/exercise_test.rb
trackler-2.2.1.126 tracks/ruby/test/generator/exercise_test.rb
trackler-2.2.1.125 tracks/ruby/test/generator/exercise_test.rb
trackler-2.2.1.124 tracks/ruby/test/generator/exercise_test.rb
trackler-2.2.1.123 tracks/ruby/test/generator/exercise_test.rb
trackler-2.2.1.122 tracks/ruby/test/generator/exercise_test.rb
trackler-2.2.1.121 tracks/ruby/test/generator/exercise_test.rb
trackler-2.2.1.120 tracks/ruby/test/generator/exercise_test.rb