Merge pull request #32 from hkenney/maint/master/stop_using_html_matchers
(maint) Remove html-matchers dependency
This commit is contained in:
commit
584b87e6c7
3
Gemfile
3
Gemfile
|
@ -14,10 +14,9 @@ else
|
||||||
end
|
end
|
||||||
|
|
||||||
group :test do
|
group :test do
|
||||||
gem "rspec", "~> 2.14.1", :require => false
|
gem "rspec"
|
||||||
gem 'mocha'
|
gem 'mocha'
|
||||||
gem 'puppetlabs_spec_helper'
|
gem 'puppetlabs_spec_helper'
|
||||||
gem 'rspec-html-matchers'
|
|
||||||
gem 'serverspec'
|
gem 'serverspec'
|
||||||
gem 'beaker'
|
gem 'beaker'
|
||||||
gem 'beaker-rspec'
|
gem 'beaker-rspec'
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
require 'puppet/face/strings'
|
require 'puppet/face/strings'
|
||||||
require 'rspec-html-matchers'
|
|
||||||
require 'tmpdir'
|
require 'tmpdir'
|
||||||
require 'stringio'
|
require 'stringio'
|
||||||
|
|
||||||
|
@ -41,7 +40,7 @@ describe Puppet::Face do
|
||||||
|
|
||||||
Puppet::Face[:strings, :current].yardoc
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -51,7 +50,7 @@ describe Puppet::Face do
|
||||||
|
|
||||||
Puppet::Face[:strings, :current].yardoc
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -61,7 +60,7 @@ describe Puppet::Face do
|
||||||
|
|
||||||
Puppet::Face[:strings, :current].yardoc
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue