Skip to content

Commit

Permalink
add shim for require 'rspec_nagios_formatter'
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Hoblitt committed Oct 7, 2013
1 parent 931bb01 commit 23384a8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/rspec_nagios_formatter.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
require 'rspec/nagios/formatter'

RSpecNagiosFormatter = RSpec::Nagios::Formatter
11 changes: 11 additions & 0 deletions spec/shim_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
require 'rspec_nagios_formatter'
require 'spec_helper'

describe RSpecNagiosFormatter do
let(:output) { StringIO.new }
let(:formatter) { RSpecNagiosFormatter.new(output) }

it 'should be an alias of RSpec::Nagios::Formatter' do
formatter.should be_kind_of(RSpec::Nagios::Formatter)
end
end

0 comments on commit 23384a8

Please sign in to comment.