How We Test Rails Applications
22-Nov-2022 962
We use RSpec feature and specs heavily,Feature specs, a kind of acceptance test, are high-level tests that walk through your entire application ensuring that each of the components work together. They’re written from the perspective of a user clicking around the application and filling in forms. We use RSpec and Capybara, which allow you to write tests that can interact with the web page in this manner.FactoryBot for test data,JavaScript integration specs with Poltergeist or Capybara Webkit,like test doubles and test spies but not test mocks,and we stub external requests with.
How We Test Rails Applications #ruby #rubydeveloper #rubyonrails #Rails #Applications #applications #test https://rubyonrails.ba/link/how-we-test-rails-applications