• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rodjek / rspec-puppet / 858
86%

Build:
DEFAULT BRANCH: master
Ran 03 Nov 2017 02:24AM UTC
Jobs 1
Files 111
Run time 5s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
858

Pull #619

travis-ci

web-flow
Adds the ability to spec test an arbitrary string

We are building a web service that will enable rspec-puppet testing of
POSTed Puppet code. The use case is a tutorial that will allow users to
type in a snippet of Puppet code and get immediate validation of whether
they'd completed the exercise correctly.

Example test:

```Ruby
require 'rspec-puppet'

RSpec::configure do |c|
  c.string = "package { 'httpd':
    ensure => present,
  }"
end

describe 'apache', :type => :string do
  let(:node) { 'testhost.example.com' }

  describe 'when called with no parameters on redhat' do
    let (:facts) { { ... } }

    it {
      should contain_package('httpd').with({
        'ensure' => 'present',
      })
    }
  end
end
```
Pull Request #619: Adds the ability to spec test an arbitrary string

19 of 19 new or added lines in 5 files covered. (100.0%)

2797 of 3062 relevant lines covered (91.35%)

186.82 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
100.0
lib/rspec-puppet/example/string_example_group.rb
Jobs
ID Job ID Ran Files Coverage
11 858.11 (2.1, PUPPET_GEM_VERSION='~> 5.0.0' COVERAGE=yes) 03 Nov 2017 02:24AM UTC 0
91.35
Travis Job 858.11
Source Files on build 858
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #858
  • Pull Request #619
  • PR Base - master (#857)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc