1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00
teamcapybara--capybara/spec/session_spec.rb

10 lines
321 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Capybara::Session do
it "verifies a passed app is a rack app" do
expect do
Capybara::Session.new(:unknown, { random: "hash"})
end.to raise_error TypeError, "The second parameter to Session::new should be a rack app if passed."
end
end