Category : rspec

I’m new to Elasticsearch and Docker. I’m getting search results with my application, But when I run test against the same , I’m getting connection error like this cannot assign requested address – cannot assign requested address – connect(2) for "localhost" port 9200 (localhost:9200) I’m using chewy gem of ruby on rails to implement Elasticsearch ..

Read more

On Bitbuckets pipelines, whenever I try to run a bundle exec rspec that contains rspec test that uses Active Storage I get the following error, for every of these tests: ActiveStorage::IntegrityError: ActiveStorage::IntegrityError # ./spec/requests/api/v1/spa_clients/identity_providers/update_spec.rb:127:in `block (3 levels) in <top (required)>’ # ./spec/requests/api/v1/spa_clients/identity_providers/update_spec.rb:135:in `block (3 levels) in <top (required)>’ This is weird since: If I run ..

Read more

I’m trying to configure capybara + rspec +selenoid, to run tests in headless mode. This is my configuration Capybara.default_max_wait_time = 5 Capybara.javascript_driver = :selenium_chrome_headless Capybara.current_driver = :selenium_chrome_headless caps = Selenium::WebDriver::Remote::Capabilities.new caps[‘browserName’] = ‘chrome’ caps[‘browserVersion’] = ‘88.0’ caps[‘"enableVNC"’] = ‘True’ Selenium::WebDriver.for( :remote, url: ‘http://localhost:4444/wd/hub’, desired_capabilities: caps ) I run My test – rspec spec/spec_test.rb: require_relative ‘../spec_helper.rb’ ..

Read more

I want to use a standalone container for integration specs with RSpecs in my docker setup. This is my docker-compose.yml # docker-compose.yml x-ata-development: &ata-development volumes: – ./tmp/capybara/:/usr/src/app/tmp/capybara – ./:/usr/src/app:delegated – /usr/src/app/tmp build: . version: "3.4" services: ata: <<: *ata-development ports: – 3000:3000 – 6006:6006 – 9229:9229 command: bash -c "bundle exec rails s -b 0.0.0.0" ..

Read more