Sha256: 815ac282756d480e8b5065e65a66d06d626f39cbb753ec5c9025d72d09fff29b

Contents?: true

Size: 321 Bytes

Versions: 6

Compression:

Stored size: 321 Bytes

Contents

# 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

Version data entries

6 entries across 5 versions & 2 rubygems

Version Path
tdiary-5.0.5 vendor/bundle/gems/capybara-2.13.0/spec/session_spec.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/capybara-2.13.0/spec/session_spec.rb
tdiary-5.0.4 vendor/bundle/gems/capybara-2.13.0/spec/session_spec.rb
capybara-2.13.0 spec/session_spec.rb
capybara-2.12.1 spec/session_spec.rb
capybara-2.12.0 spec/session_spec.rb