Skip to content

Commit

Permalink
Remove exception test generator for rna transcription exercise
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerferraro committed Aug 24, 2018
1 parent ea59701 commit 0fbbd1a
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,6 @@

class RnaTranscriptionCase < Generator::ExerciseCase
def workload
if expects_error?
assert_raises(ArgumentError) { test_case }
else
assert_equal { test_case }
end
end

private

def test_case
"assert_equal '#{expected}', Complement.of_dna('#{dna}')"
end

def expects_error?
expected.is_a? Hash
end
end

0 comments on commit 0fbbd1a

Please sign in to comment.