Skip to content

do not raise error on null date with date_format option (closes #116)#117

Merged
mcclayton merged 2 commits intoprocore-oss:masterfrom
tpltn:master
Nov 19, 2018
Merged

do not raise error on null date with date_format option (closes #116)#117
mcclayton merged 2 commits intoprocore-oss:masterfrom
tpltn:master

Conversation

@tpltn
Copy link
Copy Markdown
Contributor

@tpltn tpltn commented Nov 14, 2018

No description provided.

@philipqnguyen
Copy link
Copy Markdown
Contributor

associating this to #116

Comment thread spec/integrations/base_spec.rb Outdated
expect(blueprint.render_as_hash(object)).to eq(date: nil)
end
end
end
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's already a context for datetime. Would you augment that context to include this test instead of putting this test here?

https://github.com/procore/blueprinter/blame/master/spec/integrations/shared/base_render_examples.rb#L53-L64

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done)

@mcclayton mcclayton merged commit b55c96f into procore-oss:master Nov 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants