Sha256: a7a1fcce641b99d3aeab44c493e4f42e4eee234808d944dac973474c9385114b

Contents?: true

Size: 752 Bytes

Versions: 14

Compression:

Stored size: 752 Bytes

Contents

require "spec_helper"

describe Ninjs::Notification do  
  it 'should have a notify method' do
    Ninjs::Notification.notify('hello', :none).should == 'hello'
  end
  
  it 'should have a notice method' do
    Ninjs::Notification.notice('hello').should === 'hello'
  end
  
  it 'should have a log method' do
    Ninjs::Notification.log('hello').should === "\e[32m>>>\e[0m hello"
  end
  
  it 'should have an event method' do
    Ninjs::Notification.event('hello').should === "\e[33m<<<\e[0m hello"
  end
  
  it 'should have an added method' do
    Ninjs::Notification.added('hello').should === "\e[32m+++\e[0m hello"
  end
  
  it 'should have an error method' do
    Ninjs::Notification.error('hello').should === "\e[0;31m!!!\e[0m hello"
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
ninjs-0.16.8 spec/notification_spec.rb
ninjs-0.16.7 spec/notification_spec.rb
ninjs-0.16.6 spec/notification_spec.rb
ninjs-0.16.5 spec/notification_spec.rb
ninjs-0.16.4 spec/notification_spec.rb
ninjs-0.16.3 spec/notification_spec.rb
ninjs-0.16.2 spec/notification_spec.rb
ninjs-0.16.1 spec/notification_spec.rb
ninjs-0.16.0 spec/notification_spec.rb
ninjs-0.14.1 spec/notification_spec.rb
ninjs-0.14.0 spec/notification_spec.rb
ninjs-0.13.8 spec/notification_spec.rb
ninjs-0.13.6 spec/notification_spec.rb
ninjs-0.13.5 spec/notification_spec.rb