diff --git a/Gemfile b/Gemfile index 38a0a2a..63148a3 100644 --- a/Gemfile +++ b/Gemfile @@ -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' diff --git a/spec/unit/puppet/face_spec.rb b/spec/unit/puppet/face_spec.rb index e8024ec..03aad0d 100644 --- a/spec/unit/puppet/face_spec.rb +++ b/spec/unit/puppet/face_spec.rb @@ -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