Sha256: 078278d57162c13c7effee30183a5096a33d6d9fdfd06edaaa6f50db88779f1b

Contents?: true

Size: 332 Bytes

Versions: 3

Compression:

Stored size: 332 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'
require 'nagios/spec_helper'

describe Nagios::<%= class_name %> do
  before :each do
    @check = Nagios::<%= class_name %>.new({:x => 'some'})
  end

  it 'should be ok' do
    status, message = @check.check
    status.should == Nagios::OK
    message.should == 'good'
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nagios_helper-0.2.2 lib/generators/nagios/templates/spec.rb
nagios_helper-0.2.1 lib/generators/nagios/templates/spec.rb
nagios_helper-0.2 lib/generators/nagios/templates/spec.rb