undefined method `render_inline' view component testing #1872
-
when i run the test cases for a view component it shows:
|
Beta Was this translation helpful? Give feedback.
Answered by
niladrix719
Oct 16, 2023
Replies: 3 comments 1 reply
-
This is my code right now
|
Beta Was this translation helpful? Give feedback.
0 replies
-
@BlakeWilliams hi sorry for the act. I would like to answer this question as i solved it and would like to help the community Previously render_line method was not accessible to me, but after i added config.include ViewComponent::TestHelpers, type: :component to the spec/rails_helper.rb file the issue got resolved Like this:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
niladrix719
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@BlakeWilliams hi sorry for the act. I would like to answer this question as i solved it and would like to help the community
Previously render_line method was not accessible to me, but after i added config.include ViewComponent::TestHelpers, type: :component to the spec/rails_helper.rb file the issue got resolved
Like this: