Skip to content

Commit

Permalink
Chore: write nameable class unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
HFG43 committed Sep 8, 2023
1 parent 4b072e7 commit a3eb918
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions spec/nameable_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
require_relative 'spec_helper'
require_relative '../nameable.rb'

describe Nameable do
describe '#correct_name' do
it 'should raise Error upon exception' do
expect { Nameable.new.correct_name }.to raise_error('Error')
end
end
end

# end

# class Nameable
# def correct_name
# raise NotImplementedError, 'Error'
# end
# end

0 comments on commit a3eb918

Please sign in to comment.