RSpec.describe "classroom_show_view" do
it "renders classroom information on the show view" do
view.lookup_context.prefixes = %w[students]
student = Student.create(name: 'Bobby', hometown: Faker::Address.city, birthday: Faker::Date.between(from: 25.years.ago, to: 18.years.ago))
it "renders a students/student partial" do
view.lookup_context.prefixes = %w[students]
student = Student.create(name: 'Bobby', hometown: Faker::Address.city, birthday: Faker::Date.between(from: 25.years.ago, to: 18.years.ago))
It's a little bit unclear what is being shown here, but I believe the faker syntax has been updated and this issue is resolved. Please re-open this issue if the problem still persists. Thanks!
"https://github.com/faker-ruby/faker/blob/master/doc/default/date.md" - Nicholas Stephenson
`require "rails_helper"
RSpec.describe "classroom_show_view" do it "renders classroom information on the show view" do view.lookup_context.prefixes = %w[students] student = Student.create(name: 'Bobby', hometown: Faker::Address.city, birthday: Faker::Date.between(from: 25.years.ago, to: 18.years.ago))
original... the spec syntax is wrong. .between is changed https://github.com/faker-ruby/faker/blob/master/doc/default/date.md
end
it "renders a students/student partial" do view.lookup_context.prefixes = %w[students] student = Student.create(name: 'Bobby', hometown: Faker::Address.city, birthday: Faker::Date.between(from: 25.years.ago, to: 18.years.ago))
original... the spec syntax is wrong. .between is changed https://github.com/faker-ruby/faker/blob/master/doc/default/date.md
end
it "displays the student information from the partial" do
original... the spec syntax is wrong. .between is changed https://github.com/faker-ruby/faker/blob/master/doc/default/date.md
end ` end