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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/cypress/474 add cypress db seeds v2 #133

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

Michael-McFaddin
Copy link
Collaborator

馃ず Summary

This PR adds seeds specific to testing with cypress on the the frontend application.
tuning-fork/boilerplate#474

Comment on lines +3 to +6
def count_words(section_title, section_text)
str = "#{section_title} #{section_text}"
str.strip.split(/\s+/).length
end
Copy link
Collaborator

Choose a reason for hiding this comment

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

i wonder if we should move this into a separate class so we can have a consistent way of counting section words on the backend. wyt?

maybe a app/lib/word_counter.rb class with this method in it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants