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.
Replies: 3 comments 1 reply
-
|
This is my code right now |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
@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.
@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: