Skip to main content
I have an error of the following form and I am unable to point out the error.
Testing • Asked by Ananya Singh
 Unable to autoload constant CONSTANT_NAME, expected TESTING_FILE_PATH to define it

i18n + Minitest
Testing • Asked by Lluis Toyos
I have a complete rails application with Tests (Minitest 100% coverage)I'm trying to use i18n in this app, as told  in , taking the locale from the url ( htt...

Check if class was instantiated and instance method was called
Testing Solved • Asked by Alex Musayev
Hey guys! I'd like to figure out a way to test piece of code that suppose to create an instance of particular class. Here is an example: ``` ruby class Subject def call ... end end ...

Issue with Capybara file uploads testing
Testing • Asked by Anton Storchak
Hello! I have issue with uploading files by Capybara Rspec Selenium. Here is more details about it: Please help!

Ruby on Rails 5.1 & Vue.js 2.4.x – Testing with Karma, Jasmine – How to install? [bounty on stackoverflow]
Testing • Asked by Pascal K
I asked the same Question on [stackoverflow]( I have Rails 5.1.x and Vue.js ...

Struggling with an association test
Testing • Asked by John Sanderbeck
I have a project that has a User, a Building, and a Role There is a building_roles table that is user_id, building_id, and role_id Then I have a has_many :users through building_roles There is a...

Capybara is sending HTML format on request instead of JS
Testing • Asked by Zubin Teherani
The feature works perfectly on the browser, however on the tests when Capybara clicks the submit button the request is processed as an HTML: `Processing by SearchController#index as HTML` Inste...

Workflow for TDD/BDD on Rails ?
Testing • Asked by Lykos
Hi, I'd like some feedback if possible about the workflow of TDD/BDD on a Rails app. I was doing a research the whole weekend trying to find some good examples on how to do porperly TDD on my Rails...

Can someone help explain how to use test_double to mock a gem class in my app?
Testing • Asked by Bill Snapper
Hello, My app uses a gem that goes out to network devices. I want to write some specs that test my classes without going out to the network devices via the gem. I want to use test_double or so...

RSpec w/capybara vs Mini Test
Testing • Asked by Drilon Buzuku
Hey guys, what are your thoughts on RSpec vs Mini Test. Which one do you use and why? Cheers, Drilon