Merge pull request #32 from hkenney/maint/master/stop_using_html_matchers

(maint) Remove html-matchers dependency
This commit is contained in:
Ian Kronquist 2015-07-06 10:17:04 -07:00
commit 584b87e6c7
2 changed files with 4 additions and 6 deletions

View File

@ -14,10 +14,9 @@ else
end
group :test do
gem "rspec", "~> 2.14.1", :require => false
gem "rspec"
gem 'mocha'
gem 'puppetlabs_spec_helper'
gem 'rspec-html-matchers'
gem 'serverspec'
gem 'beaker'
gem 'beaker-rspec'

View File

@ -1,6 +1,5 @@
require 'spec_helper'
require 'puppet/face/strings'
require 'rspec-html-matchers'
require 'tmpdir'
require 'stringio'
@ -41,7 +40,7 @@ describe Puppet::Face do
Puppet::Face[:strings, :current].yardoc
expect(read_html(tmp, 'test', 'test.html')).to have_tag('.docstring .discussion', :text => /This class/)
expect(read_html(tmp, 'test', 'test.html')).to include("Class: test")
end
end
@ -51,7 +50,7 @@ describe Puppet::Face do
Puppet::Face[:strings, :current].yardoc
expect(read_html(tmp, 'test', 'Puppet3xFunctions.html')).to have_tag('.docstring .discussion', :text => /documentation for `function3x`/)
expect(read_html(tmp, 'test', 'Puppet3xFunctions.html')).to include("This is the function documentation for `function3x`")
end
end
@ -61,7 +60,7 @@ describe Puppet::Face do
Puppet::Face[:strings, :current].yardoc
expect(read_html(tmp, 'test', 'Puppet4xFunctions.html')).to have_tag('.docstring .discussion', :text => /This is a function/)
expect(read_html(tmp, 'test', 'Puppet4xFunctions.html')).to include("This is a function which is used to test puppet strings")
end
end
end