Closed stamm closed 12 years ago
@Stamm Could you paste your full spec/factories.rb file (or at least the first 20-30 lines)? Thanks!
@joshuaclayton This is all file. I have a repo with this problem: https://github.com/Stamm/blog-ror
@Stamm after looking at the project, it looks like you've gotten it figured out! This did it: https://github.com/Stamm/blog-ror/commit/60a0b83a57b7658cb2bde2cd274d6bb515d907bf. When you were calling include ApplicationHelper
, it was messing with setting title
on your factory since ApplicationHelper
was adding a title
method to Object
, meaning everything now responded to title
.
Let me know if you're having any other issues; I'll close the issue for now. Thanks!
I have ApplicationHelper, with function "title" I need in test, for example generate title
I have a post with column "title"
spec/factories.rb
spec/support/utilities.rb
spec/requests/articles_pages_spec.rb
Run test and get error
rspec spec/requests/articles_pages_spec.rb
How to make it work?