(maint) Remove rspec-html-matchers from acceptance
Prior to this commit, the acceptance tests were using the rspec-html-matchers gem which we had removed because it does not work with rspec 3. In order to make the acceptance tests compatible with this change, use string matching to check the HTML output instead and remove the dependency on that gem.
This commit is contained in:
parent
584b87e6c7
commit
3edf7347df
|
@ -1,5 +1,4 @@
|
|||
require 'spec_helper_acceptance'
|
||||
require 'rspec-html-matchers'
|
||||
require 'json'
|
||||
|
||||
describe 'Genearting module documation using yardoc action' do
|
||||
|
@ -16,14 +15,14 @@ describe 'Genearting module documation using yardoc action' do
|
|||
end
|
||||
|
||||
it "should generate documentation for manifests" do
|
||||
expect(read_file_on(master, '/root/doc/test.html')).to have_tag('.docstring .discussion', :text => /This class/)
|
||||
expect(read_file_on(master, '/root/doc/test.html')).to include("Class: test")
|
||||
end
|
||||
|
||||
it "should generate documenation for 3x functions" do
|
||||
expect(read_file_on(master, '/root/doc/Puppet3xFunctions.html')).to have_tag('.docstring .discussion', :text => /documentation for `function3x`/)
|
||||
expect(read_file_on(master, '/root/doc/Puppet3xFunctions.html')).to include("This is the function documentation for `function3x`")
|
||||
end
|
||||
|
||||
it "should generate documenation for 4x functions" do
|
||||
expect(read_file_on(master, '/root/doc/Puppet4xFunctions.html')).to have_tag('.docstring .discussion', :text => /This is a function/)
|
||||
expect(read_file_on(master, '/root/doc/Puppet4xFunctions.html')).to include("This is a function which is used to test puppet strings")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue