2016-03-07 16:52:19 -08:00
|
|
|
# frozen_string_literal: true
|
2018-02-28 16:11:41 -08:00
|
|
|
|
2015-06-05 14:16:13 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2018-07-10 14:18:39 -07:00
|
|
|
RSpec.describe 'capybara/rspec', type: :view do
|
|
|
|
it 'allows matchers to be used on strings' do
|
2018-04-27 11:01:47 -07:00
|
|
|
html = %(<h1>Test header</h1>)
|
2018-07-10 14:18:39 -07:00
|
|
|
expect(html).to have_css('h1', text: 'Test header')
|
2015-06-05 14:16:13 -04:00
|
|
|
end
|
2017-03-28 10:41:49 -07:00
|
|
|
|
|
|
|
it "doesn't include RSpecMatcherProxies" do
|
|
|
|
expect(self.class.ancestors).not_to include(Capybara::RSpecMatcherProxies)
|
|
|
|
end
|
2015-06-05 14:16:13 -04:00
|
|
|
end
|