LoginSignup
5
6

More than 5 years have passed since last update.

Capybara で request spec を書く

Posted at

spec_helper.rbに以下を記述

spec/spec_helper.rb(1)
require 'capybara/rails'
require 'capybara/rspec'
spec/spec_helper.rb(2)
RSpec.configure do |config|
  config.include Capybara::DSL, :type => :request
  config.include Capybara::RSpecMatchers, :type => :request

  :
end
5
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
6