spec/controllers/application_controller_spec.rb in trusty-cms-2.0.28 vs spec/controllers/application_controller_spec.rb in trusty-cms-3.0.0

- old
+ new

@@ -44,12 +44,12 @@ end end describe "set_timezone" do it "should use TrustyCms::Config['local.timezone']" do - TrustyCms::Config['local.timezone'] = 'Kuala Lumpur' + TrustyCms::Config['local.timezone'] = 'UTC' controller.send(:set_timezone) - expect(Time.zone.name).to eq('Kuala Lumpur') + expect(Time.zone.name).to eq('UTC') end it "should default to config.time_zone" do TrustyCms::Config.initialize_cache # to clear out setting from previous tests controller.send(:set_timezone)