-
Notifications
You must be signed in to change notification settings - Fork 6
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
StatementCache bug workaround #30
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oof. Weird bug.
Approved, with a code style suggestion. Also, coming up with good witchy names instead of P1 and P2 wouldn't go amiss in following thematic styling. 😉
spec/basic_history_spec.rb
Outdated
person1 = Person.create name: 'P1' | ||
wart1 = Wart.create person: person1 | ||
currentPerson1 = wart1.history.at(Time.current).first.person | ||
|
||
person2 = Person.create name: 'P2' | ||
wart2 = Wart.create person: person2 | ||
currentPerson2 = wart2.history.at(Time.current).first.person | ||
|
||
expect(currentPerson2.name).to eq('P2') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like some non-rubyesque variable naming snuck in.
person1 = Person.create name: 'P1' | |
wart1 = Wart.create person: person1 | |
currentPerson1 = wart1.history.at(Time.current).first.person | |
person2 = Person.create name: 'P2' | |
wart2 = Wart.create person: person2 | |
currentPerson2 = wart2.history.at(Time.current).first.person | |
expect(currentPerson2.name).to eq('P2') | |
person1 = Person.create name: 'P1' | |
wart1 = Wart.create person: person1 | |
current_person1 = wart1.history.at(Time.current).first.person | |
person2 = Person.create name: 'P2' | |
wart2 = Wart.create person: person2 | |
current_person2 = wart2.history.at(Time.current).first.person | |
expect(current_person2.name).to eq('P2') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a C# developer at heart. I'll rename everything. Gonna also get rubocop running as part of CI soon
No description provided.