Simple Test with empty rails fails
Hi everyone, I'm currently trying to create a template for internal Rails development and I just tried the newest Rails 22.214.171.124 and it fails with a simple test: ``` /tmp $ mkdir app-test /t...Andreas Steinel posted
How To Wrte good bug report for Manual Testing?
A bug report is very easy to write. But what should be the column for bug reports?Ashutoshkumar posted
guard-minitest runs ALL tests not just the ones for the target file changed
Dan Tappin replied • Solved
rails test attempts to create multiple test databases and fails because it cannot connect
Well, I learned about [Parallel Testing](https://edgeguides.rubyonrails.org/testing.html#parallel-testing) today, a new "feature" of Rails 6. Kinda cool, but probably shouldn't be a default of newl...Ian Burry replied • Solved
Testing and Session Variables
I had a rouge conditional wrapped around my code where I set the enrollment. This fails in testing but passes in production. Tweaked that and now it works fine.Dan Tappin replied • Solved
Failed to Run Localhost because of Run Time Error
I'm getting runtime error whenever I run the localhost. Redis was running but it only loaded the homepage. After about 10 seconds, the server stopped and gave us this error. ``` `__connect_nonblo...[email protected] posted
Accounts middleware and integration tests?
Hi folks — I'm a big fan of the Accounts Middleware pattern introduced about a year ago in this tutorial: https://gorails.com/episodes/rails-active-support-current-attributes Super powerful....Dan Charlesworth posted
Access the request object in a helper in a helper test (minitest)
Thanks Chris!Wout replied • Solved
Issues running System Tests due to missing font?
I have written two system tests for my current application and I have now hit a road block. ``` test "visiting the timesheet index without signing in" do visit timesheets_path ass...Stephen Sizer posted
i18n + Minitest
This is the rails test outputRunning via Spring preloader in process 3754 Started with run options --seed 15709 Run options: --seed 15709--=---=---=---=---=---=---=---=---=---=---=---=---=---] ...Lluis Toyos replied
I have an error of the following form and I am unable to point out the error.
Change your class name from `Completed_lesson` to CompletedLessonIts a naming convention in Rails.John Meehan replied
Check if class was instantiated and instance method was called
I figured out the solution. Here are basic concepts:1. To check if an instance method was called, it is possible to use a mock. For example, Minites::Mock.2. To make sure a piece of code (Executor#...Alex Musayev replied • Solved
Issue with Capybara file uploads testing
Hello! I have issue with uploading files by Capybara Rspec Selenium. Here is more details about it: https://stackoverflow.com/questions/48499129/capybara-upload-images-issue Please help!Anton Storchak posted
Ruby on Rails 5.1 & Vue.js 2.4.x – Testing with Karma, Jasmine – How to install? [bounty on stackoverflow]
I updated my Question on [stackoverflow](https://stackoverflow.com/questions/46194455/ruby-on-rails-5-1-vue-js-2-4-x-testing-with-karma-jasmine-how-to-install) and added a **bounty**Pascal K replied
Struggling with an association test
Thought 1: Sounds like you just need to make sure the role and building are created before the user is. Then, in your model, make sure that the user is associated with a default role and buildi...John Sanchez replied
Capybara is sending HTML format on request instead of JS
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...Zubin Teherani posted
Can someone help explain how to use test_double to mock a gem class in my app?
No worries at all. I happen to be the maintainer for the gem but for this app I don't want or need to perform any operations directly on thermostats. Thanks for the pointer.Bill Snapper replied
Workflow for TDD/BDD on Rails ?
I just want to throw in my 2 cents with regards to TDD and the workflow/practices of a development team. You're correct that "textbook TDD" states you first write specs that don't pass, then you i...Dan LeGrand replied
RSpec w/capybara vs Mini Test
My .02c I don't TDD. I've tried it and find it too constraining. As far as testing I really don't focus on 100% test coverage in production apps. I tend to focus on unit, integration, and sys...shakycode replied