Last active
October 11, 2023 03:11
-
-
Save jlcarrascof/a1e954f9c11119397a919a54f2c9d5cd to your computer and use it in GitHub Desktop.
Requirement 1 - Capitalize decorator test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require_relative '../lib/models/decorator' | |
require_relative '../lib/models/persons' | |
describe 'Tests For Decorator class:' do | |
# we need to provide data for the parameters | |
person = Person.new('harry Potter', 20, parent_permission: true) | |
# created instance of decorator class | |
decorator = Decorator.new(person) | |
# test the correct_name method | |
context 'correct_name method' do | |
it 'should return the name: harry Potter' do | |
expect(decorator.correct_name).to eq('harry Potter') | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment