Gang Of Coders
Home
About Us
Contact Us
All Rspec Solutions on Gang of Coders
Total of 123 Rspec Solutions
How to spec a private method
Ruby on-Rails
Rspec
RSpec any_instance deprecation: how to fix it?
Ruby on-Rails
Ruby
Testing
Rspec
How do you run a single test/spec file in RSpec?
Ruby
Testing
Rspec
How do I simulate a login with RSpec?
Ruby on-Rails
Rspec
Factory Bot
In RSpec, what's the difference between before(:suite) and before(:all)?
Rspec
Rspec2
RSpec: How could I use the array include matcher in the expect syntax
Ruby
Unit Testing
Rspec
How can I validate exits and aborts in RSpec?
Ruby
Rspec
Mocking
Running Rake tasks in Rspec Tests
Ruby
Ruby on-Rails-3
Rspec
Tdd
Rake
Visit method not found in my rspec
Ruby on-Rails
Rspec
Jruby
How to set private instance variable used within a method test?
Ruby
Testing
Rspec
Access Specifier
How to emulate mouse hover with Capybara
Ruby on-Rails
Rspec
Capybara
Is it impossible to use Guard with RubyMine?
Ruby on-Rails
Rspec
Tdd
Rubymine
Guard
Running a spec in RubyMine results in "cannot load such file -- teamcity/spec/runner/formatter/teamcity/formatter (LoadError)"
Ruby on-Rails
Ruby
Ruby on-Rails-4
Rspec
Rubymine
How to load a spec_helper.rb automatically in RSpec 2
Ruby
Rspec
Rspec2
With RSpec, how to seed the database on load?
Ruby on-Rails
Ruby on-Rails-3
Rspec
Does rspec have anything more specific than target.should be < 6?
Ruby
Rspec
Set Rspec default GET request format to JSON
Ruby on-Rails
Rspec
Functional Testing
How to use RSpec without Rails?
Ruby
Rspec
Tdd
Bdd
What's the difference between "include_examples" and "it_behaves_like"?
Ruby
Rspec
RSpec allow/expect vs just expect/and_return
Ruby
Testing
Rspec
Mocking
Rspec3
RSpec: specifying multiple calls to a method with different argument each time
Ruby
Testing
Rspec
Suppress console output during RSpec tests
Ruby
Rspec
Selenium::WebDriver::Error::JavascriptError: waiting for evaluate.js load failed Firefox 23
Rspec
Selenium Webdriver
How to test rendering a partial with RSpec
Ruby on-Rails
Ruby
Ruby on-Rails-3
Rspec
Minitest and Rspec
Ruby on-Rails
Ruby
Testing
Rspec
Minitest
Rspec: "array.should == another_array" but without concern for order
Ruby
Testing
Rspec
iOS Tests/Specs TDD/BDD and Integration & Acceptance Testing
Iphone
Ios
Rspec
Cucumber
Ios Ui-Automation
Rails: Missing host to link to! Please provide :host parameter or set default_url_options[:host]
Ruby on-Rails
Rspec
How to use RSpec's should_raise with any kind of exception?
Ruby on-Rails
Ruby
Exception Handling
Rspec
Testing modules in RSpec
Ruby
Unit Testing
Rspec
How do I run only specific tests in Rspec?
Ruby
Rspec
How can I tell Rails to use RSpec instead of test-unit when creating a new Rails app?
Ruby on-Rails-3
Rspec
Rspec2
Testunit
How to check for a JSON response using RSpec?
Ruby on-Rails
Json
Rspec
How can I check that a form field is prefilled correctly using capybara?
Forms
Rspec
Capybara
Set up RSpec to test a gem (not Rails)
Testing
Rspec
Rubygems
Rspec2
How do I globally configure RSpec to keep the '--color' and '--format specdoc' options turned on
Ruby
Colors
Rspec
Configuration Files
How to get current path with query string using Capybara
Ruby on-Rails
Ruby on-Rails-3
Rspec
Capybara
Trouble comparing time with RSpec
Ruby on-Rails
Ruby
Time
Rspec
Comparison
How to click first link in list of items after upgrading to Capybara 2.0?
Ruby
Rspec
Capybara
RSpec vs Cucumber (RSpec stories)
Unit Testing
Rspec
Cucumber
Integration Testing
Rspec Stories
How to set request headers in rspec request spec?
Ruby on-Rails
Json
Testing
Rspec
All Ruby tests raising: undefined method `authenticate' for nil:NilClass
Ruby on-Rails
Ruby
Testing
Rspec
Devise
How to check a checkbox in capybara?
Ruby on-Rails
Ruby
Testing
Rspec
Capybara
RSpec: how to test if a method was called?
Ruby on-Rails
Ruby
Rspec
Rspec, Rails: how to test private methods of controllers?
Ruby on-Rails
Rspec
How to find which rspec test is taking so long
Rspec
How to Test a Concern in Rails
Ruby on-Rails
Testing
Rspec
RSpec: describe, context, feature, scenario?
Rspec
Rspec2
Rspec Rails
What's the difference between RSpec and Cucumber?
Ruby on-Rails
Testing
Rspec
Tdd
Cucumber
Skip callbacks on Factory Girl and Rspec
Ruby on-Rails
Rspec
Factory Bot
How to say "should_receive" more times in RSpec
Ruby on-Rails
Rspec
RSpec: What is the difference between a feature and a request spec?
Ruby on-Rails
Rspec
Rspec Rails
Disable a group of tests in rspec?
Ruby
Rspec
RSpec controller testing - blank response.body
Ruby on-Rails
Ruby
Unit Testing
Rspec
rspec 3 - stub a class method
Ruby on-Rails
Ruby
Rspec
Rspec3
RSpec: Expect to change multiple
Ruby on-Rails
Rspec
Matcher
What's the difference between RSpec's subject and let? When should they be used or not?
Ruby
Unit Testing
Rspec
How to test exception raising in Rails/RSpec?
Ruby on-Rails
Ruby
Rspec
Rspec doesn't see my model Class. uninitialized constant error
Ruby on-Rails
Testing
Model
Rspec
Rails 4: How to reset test database?
Ruby on-Rails
Ruby
Rspec
Capybara Ambiguity Resolution
Ruby on-Rails-3
Rspec
Capybara
How to set up factory in FactoryBot with has_many association
Rspec
Ruby on-Rails-3.1
Has Many-Through
Factory Bot
How to get rspec-2 to give the full trace associated with a test failure?
Ruby
Ruby on-Rails-3
Testing
Rspec
Rspec2
When to use RSpec let()?
Ruby
Rspec
How is spec/rails_helper.rb different from spec/spec_helper.rb? Do I need it?
Ruby on-Rails
Testing
Rspec
Rspec Rails
Rspec3
Speeding up RSpec tests in a large Rails application
Ruby on-Rails
Ruby
Unit Testing
Rspec
Bdd
undefined method `visit' when using RSpec and Capybara in rails
Ruby on-Rails
Ruby
Rspec
Capybara
Generate a controller with all the RESTful functions
Ruby on-Rails
Controller
Rest
Rspec
Can RSpec stubbed method return different values in sequence?
Ruby on-Rails
Testing
Rspec
Stub
Capybara: How do I fill in a input field by its ID
Rspec
Capybara
How do I prepare test database(s) for Rails rspec tests without running rake spec?
Ruby on-Rails
Ruby on-Rails-3
Rspec
Rspec2
Specjour
Difference between an it block and a specify block in RSpec
Ruby on-Rails
Ruby
Rspec
How to get Rails.logger printing to the console/stdout when running rspec?
Ruby on-Rails
Logging
Rspec
Console
Stdout
RSpec: What is the difference between let and a before block?
Ruby on-Rails
Unit Testing
Rspec
How to assert number of elements using Capybara with proper error message?
Rspec
Dsl
Capybara
capybara assert attributes of an element
Ruby on-Rails
Rspec
Capybara
Factory-girl create that bypasses my model validation
Ruby on-Rails
Ruby on-Rails-3
Rspec
Factory Bot
Rspec Rails
Rspec 3 how to test flash messages
Ruby on-Rails
Ruby
Rspec
Stubbing authentication in request spec
Ruby on-Rails-3
Rspec
Integration Testing
Stubbing
Ruby Rspec : Testing instance variables without adding an accessor to source
Ruby
Rspec
Instance Variables
rails rspec before all vs before each
Ruby on-Rails
Rspec
How to make Capybara check for visibility after some JS has run?
Ruby
Rspec
Capybara
Integration Testing
How to test ActionMailer deliver_later with rspec
Ruby on-Rails
Rspec
Actionmailer
Delayed Job
Rails Activejob
Running ruby debug in rspec?
Ruby on-Rails
Rspec
Rake
Ruby Debug
Ruby on Rails: Switch from test_unit to rspec
Ruby on-Rails
Rspec
Gem
Testunit
How to define an array / hash in factory_bot?
Ruby on-Rails-3
Rspec
Factory Bot
Rspec Output Format: Documentation
Ruby on-Rails
Ruby
Rspec
Rubocop 25 line block size and RSpec tests
Ruby
Rspec
Rubocop
RSpec: how to test Rails logger message expectations?
Logging
Rspec
Mocking
Stubbing
How to say "any_instance" "should_receive" any number of times in RSpec
Ruby on-Rails
Testing
Rspec
Mocking
mocha.js
How to create a Gemfile?
Ruby
Rspec
Object.any_instance should_receive vs expect() to receive
Rspec
Rspec2
Rspec Rails
What is the best way to write specs for code that depends on environment variables?
Ruby
Rspec
Environment Variables
Rails/Rspec Make tests pass with http basic authentication
Ruby on-Rails
Rspec
Http Authentication
undefined method `get' for #<RSpec::Core::ExampleGroup::Nested_1:0x00000106db51f8>
Ruby on-Rails
Rspec
Rails 3.1, RSpec: testing model validations
Ruby on-Rails
Ruby on-Rails-3
Rspec
Rspec2
Rspec Rails
How do I change the default "www.example.com" domain for testing in rails?
Ruby on-Rails
Rspec
BDD and TDD for node.js?
node.js
Rspec
Tdd
Cucumber
Bdd
Capybara: How to test the title of a page?
Ruby on-Rails
Rspec
Capybara
Shoulda/RSpec matchers - conditional validation
Ruby on-Rails
Ruby
Rspec
Shoulda
Error when trying to run rspec: `require': cannot load such file -- rails_helper (LoadError)
Ruby on-Rails
Command Line
Rspec
Controller spec unknown keyword: id
Ruby on-Rails
Ruby
Rspec
Ruby on-Rails-5
Rspec Rails
FactoryBot: create the same object multiple times
Ruby on-Rails
Rspec
Factory Bot
Rails 5, Rspec: Environment data not found in the schema
Ruby on-Rails
Rspec
Rspec Rails
Ruby on-Rails-5
What is the purpose of a `transient do` block in FactoryBot factories?
Ruby on-Rails
Ruby
Rspec
Factory Bot
Suppress Ruby warnings when running specs
Ruby on-Rails
Ruby
Rspec
Warnings
Testing hash contents using RSpec
Ruby
Rspec
Expectations
How to stub ApplicationController method in request spec
Ruby on-Rails
Ruby
Rspec
Capybara
Testing private method in Ruby (rspec)
Ruby
Rspec
How to run a single RSpec test?
Ruby on-Rails
Ruby
Ruby on-Rails-3
Rspec
Rspec testing redirect_to :back
Ruby on-Rails
Redirect
Rspec
Rspec2
how to test params passed into a controller in rails 3, using rspec?
Ruby on-Rails
Rspec
Get select value of dropdown for capybara testing
Ruby on-Rails
Rspec
Capybara
Rails/Rspec - testing a redirect in the controller
Ruby on-Rails
Redirect
Rspec
Routes
RSpec documentation...where is it hiding?
Ruby on-Rails
Rspec
Rspec2
Clearing out ActionMailer::Base.deliveries after RSpec test
Ruby on-Rails
Unit Testing
Rspec
Actionmailer
Using RSpec to check if something is an instance of another object
Ruby
Testing
Rspec
Instance
Rails rspec set subdomain
Ruby on-Rails
Rspec
Subdomain
Specifications
How do you test an AJAX request with RSpec/RoR?
Ruby on-Rails
Ajax
Testing
Rspec
mocha.js
How to fill hidden field with Capybara?
Rspec
Capybara
Guard with RSpec on Rails 4 giving a lot of warnings
Ruby on-Rails
Ruby
Ruby on-Rails-4
Rspec
Could not find generator rspec:install (q2)
Rspec
Using Rspec, how do I test the JSON format of my controller in Rails 3.0.11?
Ruby on-Rails
Json
Api
Header
Rspec