algolia / jekyll-algolia

Add fast and relevant search to your Jekyll site
https://community.algolia.com/jekyll-algolia/
MIT License
214 stars 35 forks source link

Writing unit test cases for jekyll plugins need to access the context.registers. #189

Open rishankHashout opened 2 years ago

rishankHashout commented 2 years ago

Hello , I am writing unit test cases for my jekyll plugins , where I need the site variable and context.registers . I was able to get the site variable using the process used by jekyll-algolia plugin link to jekyll-algolia spec_helper.rb. Is there a way i can also access the @context.register using the way got access to site variable?