Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wth - Model Specs instantiated incorrectly #986

Merged
merged 1 commit into from Jul 12, 2017

Conversation

wtholt
Copy link
Contributor

@wtholt wtholt commented Jul 7, 2017

Many of our model specs begin with something like this:
RSpec.describe 'Protocol' do
When they should be something like this:
Rspec describe Protocol, type: :model do
Both work, but I found that the easy way to test model validations using
shoulda-matchers doesn't work using the string syntax.

[#147443143]

Story - https://www.pivotaltracker.com/story/show/147443143

Many of our model specs begin with something like this:
RSpec.describe 'Protocol' do
When they should be something like this:
Rspec describe Protocol, type: :model do
Both work, but I found that the easy way to test model validations using
shoulda-matchers doesn't work using the string syntax.

[#147443143]

Story - https://www.pivotaltracker.com/story/show/147443143
@Stuart-Johnson Stuart-Johnson merged commit 9f21f20 into v3.0.0 Jul 12, 2017
@Stuart-Johnson Stuart-Johnson deleted the wth-modify-model-specs branch July 12, 2017 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants