spec/helper.rb in cfn-flow-0.7.0 vs spec/helper.rb in cfn-flow-0.8.0

- old
+ new

@@ -36,14 +36,18 @@ # Reset stubs CfnFlow.clear! Aws.config.delete(:cloudformation) end + def memo_now + @now = Time.now + end + def stub_stack_data(attrs = {}) { stack_name: "mystack", stack_status: 'CREATE_COMPLETE', - creation_time: Time.now, + creation_time: memo_now, tags: [ {key: 'CfnFlowService', value: CfnFlow.service}, {key: 'CfnFlowEnvironment', value: 'production'} ] }.merge(attrs)