Yes, if your constructor does something meaningful. This is just like another method and should be treated equally for unit testsing purpose. Here's an example that should need unit test:
This file contains 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
class Weather | |
attr_accessor :temperature, :humidity | |
def initialize another_weather | |
self.temperature = another_weather.temperature | |
self.humidity = another_weather.humidity | |
end | |
end |
It looks simple, so testing it should be simple, too. I would only skip the default constuctors, as long as they don't do anything interesting.