Sha256: 372efe6adaa83b207d347fd06e852f8fcc8d8df680ccaf9f81cb35575ac8ba12

Contents?: true

Size: 815 Bytes

Versions: 45

Compression:

Stored size: 815 Bytes

Contents

require "spec_helper"

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

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
architecture-js-0.6.3 spec/notification_spec.rb
architecture-js-0.6.2 spec/notification_spec.rb
architecture-js-0.6.1 spec/notification_spec.rb
architecture-js-0.6.0 spec/notification_spec.rb
architecture-js-0.5.8 spec/notification_spec.rb
architecture-js-0.5.7 spec/notification_spec.rb
architecture-js-0.5.6 spec/notification_spec.rb
architecture-js-0.5.5 spec/notification_spec.rb
architecture-js-0.5.4 spec/notification_spec.rb
architecture-js-0.5.3 spec/notification_spec.rb
architecture-js-0.5.2 spec/notification_spec.rb
architecture-js-0.5.1 spec/notification_spec.rb
architecture-js-0.5.0 spec/notification_spec.rb
architecture-js-0.4.0 spec/notification_spec.rb
architecture-js-0.3.8 spec/notification_spec.rb
architecture-js-0.3.7 spec/notification_spec.rb
architecture-js-0.3.6 spec/notification_spec.rb
architecture-js-0.3.5 spec/notification_spec.rb
architecture-js-0.3.4 spec/notification_spec.rb
architecture-js-0.3.3 spec/notification_spec.rb