How We Test Rails Applications

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 #applications #test https://rubyonrails.ba/single/how-we-test-rails-applications

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles