mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
14 lines
383 B
Ruby
14 lines
383 B
Ruby
# 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
|