File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 137
137
end
138
138
139
139
context 'on Solaris2' do
140
- it_should_behave_like 'an unsupported OS' , 'solaris2' , '5.11'
140
+ let ( :chef_run ) do
141
+ allow ( ::File ) . to receive ( :symlink? ) . with ( '/etc/localtime' )
142
+ . and_return ( false )
143
+ stub_command ( 'svccfg -s timezone:default listprop timezone/localtime | grep UTC' )
144
+ . and_return ( 'stubbed value' )
145
+ ChefSpec ::SoloRunner . new ( platform : 'solaris2' , version : '5.11' )
146
+ . converge ( described_recipe )
147
+ end
148
+
149
+ specify { expect ( chef_run ) . to install_package ( 'timezone' ) }
150
+ specify { expect ( chef_run ) . to include_recipe ( 'timezone-ii::solaris2' ) }
151
+ specify do
152
+ expect ( chef_run ) . not_to include_recipe ( 'timezone-ii::linux-generic' )
153
+ end
141
154
end
142
155
143
156
context 'on SUSE' do
You can’t perform that action at this time.
0 commit comments