Sha256: 7363cd35b3a822f27844dc8589f3e20a88f071cb04ceb31a4ea95c45958317e3
Contents?: true
Size: 593 Bytes
Versions: 86
Compression:
Stored size: 593 Bytes
Contents
require "spec" require "../src/exercise_generator" require "../src/exercise_test_case" class DummyGenerator < ExerciseGenerator def exercise_name "dummy" end def test_cases [] of ExerciseTestCase end end describe "ExerciseGenerator" do describe "#describe_name" do it "will return the name of the exercise in camel case" do DummyGenerator.new.describe_name.should eq("Dummy") end end describe "#generate" do it "raises an error if no test cases exist" do expect_raises(Exception) do DummyGenerator.generate end end end end
Version data entries
86 entries across 86 versions & 1 rubygems