# pdk test unit failing due to unknown variable from container class

Hello, I am developing a new module and following another examples, I have a main class which contains another class, and from this second class I try to access the parameters available in the main class. Something like this:

class main_class ( String
$mainparameter ){ contain main_class::second_class } class main_class::second_class { file {$main_class::mainparameter:
ensure => directory,
mode => '0755',
owner => 'root',
group => 'root'
}
}


And the error I get is like this:

failed: rspec: ./spec/classes/simdownload_spec.rb:8: error during compilation: Evaluation Error: Unknown variable: 'mainclass::main_parameter'.