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