Sha256: 363b78510defa3532748df22abfc0dc9d2d4eccfe759c8b32b8beaf4f0f751f5

Contents?: true

Size: 383 Bytes

Versions: 7

Compression:

Stored size: 383 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

RSpec.describe "capybara/rspec", type: :view do
  it "allows matchers to be used on strings" do
    html = %(<h1>Test header</h1>)
    expect(html).to have_css("h1", text: "Test header")
  end

  it "doesn't include RSpecMatcherProxies" do
    expect(self.class.ancestors).not_to include(Capybara::RSpecMatcherProxies)
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
tdiary-5.0.9 vendor/bundle/gems/capybara-3.2.1/spec/rspec/views_spec.rb
capybara-3.3.1 spec/rspec/views_spec.rb
capybara-3.3.0 spec/rspec/views_spec.rb
capybara-3.2.1 spec/rspec/views_spec.rb
capybara-3.2.0 spec/rspec/views_spec.rb
capybara-3.1.1 spec/rspec/views_spec.rb
capybara-3.1.0 spec/rspec/views_spec.rb