I'm trying to run some tests using Sinatra's ruby, however I'm encountering this problem.
➜ onebitbot git:(master) docker-compose run --rm website rspec spec/services/faq/create_service_spec.rb
Starting onebitbot_postgres_1 ... done
An error occurred while loading ./spec/services/faq/create_service_spec.rb.
Failure/Error: view raw
NameError:
undefined local variable or method 'raw' for main:Object
Did you mean? rand
/usr/local/bundle/gems/pg_search-2.1.2/lib/pg_search.rb:76:in 'method_missing'
./app/services/faq/list_service.rb:38:in '<top (required)>'
/usr/local/bundle/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in 'require'
/usr/local/bundle/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in 'block in require'
/usr/local/bundle/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:249:in 'load_dependency'
/usr/local/bundle/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in 'require'
./app.rb:8:in 'block in <top (required)>'
./app.rb:8:in 'each'
./app.rb:8:in '<top (required)>'
./spec/spec_helper.rb:1:in 'require_relative'
./spec/spec_helper.rb:1:in '<top (required)>'
./spec/services/faq/create_service_spec.rb:1:in 'require_relative'
./spec/services/faq/create_service_spec.rb:1:in '<top (required)>'
No examples found.
Finished in 0.00219 seconds (files took 2.37 seconds to load)
0 examples, 0 failures, 1 error occurred outside of examples
The gem pg_search is already installed, in searches done I could not find anything that could give me a north.