Sha256: 4b9b3ea75881e6efbc41b063c5468dbed93e18c26441361305609d528f1a4ae6

Contents?: true

Size: 793 Bytes

Versions: 1

Compression:

Stored size: 793 Bytes

Contents

# frozen_string_literal: true

module LearnTest
  module Strategies
    class None < LearnTest::Strategy
      def service_endpoint
        '/e/flatiron_none'
      end

      def detect
        runner.files.include?('.canvas')
      end

      def run
        puts 'Your assignment was submitted. You can resubmit by running `learn test` again.'
      end

      def results
        {
          username: username,
          github_user_id: user_id,
          learn_oauth_token: learn_oauth_token,
          repo_name: runner.repo,
          build: {
            test_suite: [{ framework: 'none' }]
          },
          examples: 0,
          passing_count: 0,
          pending_count: 0,
          failure_count: 0,
          failure_descriptions: ''
        }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
learn-test-3.2.3 lib/learn_test/strategies/none.rb