Top "Rspec" questions

RSpec is a behavior-driven development (BDD) framework for the Ruby programming language, inspired by JBehave.

Rspec + Capybara : How to click on alert box

I have gone through the post of capybara + click on alert box but nothing seems to be work. Following is …

rspec capybara
Can RSpec stubbed method return different values in sequence?

I have a model Family with a method location which merges the location outputs of other objects, Members. (Members are …

ruby-on-rails testing rspec stub
Correct way of testing "associations" with Rspec?

I am trying to test the following scenario: -> I have a model called Team which it just makes …

ruby-on-rails rspec associations
Set Rspec default GET request format to JSON

I am doing functional tests for my controllers with Rspec. I have set my default response format in my router …

ruby-on-rails rspec functional-testing
How do I change the default "www.example.com" domain for testing in rails?

I have a rails application which acts differently depending on what domain it's accessed at (for example www.myapp.com …

ruby-on-rails rspec
Factory-girl create that bypasses my model validation

I am using Factory Girl to create two instances in my model/unit test for a Group. I am testing …

ruby-on-rails ruby-on-rails-3 rspec factory-bot rspec-rails
What's the difference between RSpec and Cucumber?

I have 6 months of Rails development experience. I've built a web application that's in use now with authentication and authorization …

ruby-on-rails testing rspec tdd cucumber
Test Redirection with RSpec and Capybara (Rails)

I just have learnt how cool RSpec and Cabybara is, and now working around it to learn writing actual test. …

ruby-on-rails rspec capybara
Fixtures in RSpec

I'm new to using RSpec for writing tests in a Rails application which uses a MySQL database. I have defined …

ruby-on-rails rspec bdd fixtures
How to emulate mouse hover with Capybara

Basically, what I'm trying to do is click on a button that becomes visible when hovering another element (its parent). …

ruby-on-rails rspec capybara