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

Non-repeatable test for Student name in classroom_show_spec.rb #6

Closed
zoebisch opened this issue Sep 18, 2017 · 3 comments
Closed

Non-repeatable test for Student name in classroom_show_spec.rb #6

zoebisch opened this issue Sep 18, 2017 · 3 comments
Labels

Comments

@zoebisch
Copy link

What I believe is an unintended consequence of using Faker::Name.name is that it occasionally generates an apostrophe in the name. In the way the form gets rendered, the apostrophe becomes an alt-code like so:

   +  <li>
   +    Name: Bria O&#39;Connell
   +  </li>       

Diff:
@@ -1,2 +1,67 @@

   -Bria O'Connell

While I am not certain this isn't intentional, it is a non-repeatable test.

RSpec.describe "classroom_show_view" do
let(:classroom) { Classroom.create(course_name: 'Math', semester: "Spring #{Time.now.year}") }
let(:student){ Student.create(name: 'Bobby', hometown: Faker::Address.city, birthday: Faker::Date.between(25.years.ago, 18.years.ago)) }

before do
5.times do
Student.create(name: Faker::Name.name, hometown: Faker::Address.city, birthday: Faker::Date.between(25.years.ago, 18.years.ago))
end

@sgharms
Copy link

sgharms commented Jan 23, 2018

@zoebisch This is a very good insight and often discussed. But it seems like this PR is opened on the wrong repository. Can you open this issue on some repo with a classroom_show_view spec?

Thanks!

@sgharms sgharms closed this as completed Jan 23, 2018
@zoebisch
Copy link
Author

zoebisch commented Jan 23, 2018

Ahh, not sure how that happened! Issue raised here:

[https://github.com/learn-co-curriculum/simple-partials-lab/issues/5]

@sgharms
Copy link

sgharms commented Jan 24, 2018 via email

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

No branches or pull requests

3 participants
@sgharms @zoebisch and others