Sha256: e7f3197454f204909cd52e764c9e74fc59d50554c0bff94ea5c53eeed529eb03

Contents?: true

Size: 542 Bytes

Versions: 188

Compression:

Stored size: 542 Bytes

Contents

require "spec"
require "json"
require "../src/exercise_test_case"

class DummyTestCase < ExerciseTestCase
  def workload; end

  def test_name; end
end

describe "DummyTestCase" do
  describe "#pending" do
    it "outputs 'it' if the given integer is 0" do
      dummy_test_case = DummyTestCase.new
      dummy_test_case.pending?(0).should eq("it")
    end

    it "outputs 'pending' if the given integer is greater than 0" do
      dummy_test_case = DummyTestCase.new
      dummy_test_case.pending?(1).should eq("pending")
    end
  end
end

Version data entries

188 entries across 188 versions & 1 rubygems

Version Path
trackler-2.2.0.5 tracks/crystal/generator/spec/exercise_test_case_spec.cr
trackler-2.2.0.4 tracks/crystal/generator/spec/exercise_test_case_spec.cr
trackler-2.2.0.3 tracks/crystal/generator/spec/exercise_test_case_spec.cr
trackler-2.2.0.2 tracks/crystal/generator/spec/exercise_test_case_spec.cr
trackler-2.2.0.1 tracks/crystal/generator/spec/exercise_test_case_spec.cr
trackler-2.2.0.0 tracks/crystal/generator/spec/exercise_test_case_spec.cr
trackler-2.1.0.55 tracks/crystal/generator/spec/exercise_test_case_spec.cr
trackler-2.1.0.54 tracks/crystal/generator/spec/exercise_test_case_spec.cr