Sha256: d7fdb8d9dc4b09feb57566b4e04737e6a2f69a17e97013ca22ffdb3b117d233d

Contents?: true

Size: 755 Bytes

Versions: 24

Compression:

Stored size: 755 Bytes

Contents

require_relative 'test_helper'

module Generator
  class UpdateVersionAndGenerateTestsTest < Minitest::Test
    def test_call
      mock_exercise = Minitest::Mock.new
      mock_exercise.expect :update_tests_version, nil
      mock_exercise.expect :update_example_solution, nil
      mock_exercise.expect :create_tests_file, nil

      subject = UpdateVersionAndGenerateTests.new(mock_exercise)
      subject.call

      mock_exercise.verify
    end
  end

  class UpdateVersionAndGenerateTestsFrozenVersionTest < Minitest::Test
    def test_call
      mock_exercise = Minitest::Mock.new
      mock_exercise.expect :create_tests_file, nil

      subject = GenerateTests.new(mock_exercise)
      subject.call

      mock_exercise.verify
    end
  end

end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
trackler-2.1.0.36 tracks/ruby/test/generator_test.rb
trackler-2.1.0.34 tracks/ruby/test/generator_test.rb
trackler-2.1.0.33 tracks/ruby/test/generator_test.rb
trackler-2.1.0.32 tracks/ruby/test/generator_test.rb
trackler-2.1.0.31 tracks/ruby/test/generator_test.rb
trackler-2.1.0.30 tracks/ruby/test/generator_test.rb
trackler-2.1.0.29 tracks/ruby/test/generator_test.rb
trackler-2.1.0.28 tracks/ruby/test/generator_test.rb
trackler-2.1.0.27 tracks/ruby/test/generator_test.rb
trackler-2.1.0.26 tracks/ruby/test/generator_test.rb
trackler-2.1.0.25 tracks/ruby/test/generator_test.rb
trackler-2.1.0.24 tracks/ruby/test/generator_test.rb
trackler-2.1.0.23 tracks/ruby/test/generator_test.rb
trackler-2.1.0.22 tracks/ruby/test/generator_test.rb
trackler-2.1.0.21 tracks/ruby/test/generator_test.rb
trackler-2.1.0.20 tracks/ruby/test/generator_test.rb
trackler-2.1.0.19 tracks/ruby/test/generator_test.rb
trackler-2.1.0.18 tracks/ruby/test/generator_test.rb
trackler-2.1.0.17 tracks/ruby/test/generator_test.rb
trackler-2.1.0.16 tracks/ruby/test/generator_test.rb