rspec-rails is an extension of the RSpec testing framework that provides support for testing Ruby on Rails applications.
currently I'm running more than 1k examples and it's taking a long time to complete (more than 20 minutes!!!). I'd like …
ruby-on-rails tdd rspec rspec-railsI run my rspec and most of the test were failed. I got the same error for them, which is: …
ruby-on-rails rspec rspec-railsI just started a new project in Rails 5, (my first, though I have several projects in Rails 4.x.) and am …
ruby-on-rails rspec ruby-on-rails-5 rspec-railsI have a Private methods in my model like the following: validate :record_uniq private def record_uniq if record_…
ruby-on-rails ruby-on-rails-3 rspec rspec-rails shouldaI am wondering whether the before (as seen below) is the same as before :all in RSpec. Sometimes neither :each …
rspec rspec2 rspec-railsEnvironment Rails 4.2.0 ruby-2.2.1 [ x86_64 ] devise 3.4.1 rspec-core 3.2.2 rspec-rails 3.2.1 In my /spec/rails_helper.rb I have included Devise helpers for spec …
devise rspec-rails ruby-on-rails-4.2I am trying to test my default scope line in a model. My test is as follows: it 'orders by …
ruby-on-rails testing rspec rspec-railsI just upgraded my Capybara Gem from version 1 to 2.1.0 (latest). Based on Capybara Readme, I added this following lines to …
rspec ruby-on-rails-3.2 capybara rspec-railsSo I was searching online for a solution, but there seems to be scarce information about testing initializers created in …
ruby-on-rails rspec config rspec-rails initializerGiven the code below: (1) How would you go about writing a spec to test the :allow_nil => false option? (2) …
delegation rspec-rails