Sha256: 391b8fe1085c92b4ff710ea0978bd353886969ef28db4543c396c9e0663d2a53

Contents?: true

Size: 626 Bytes

Versions: 5

Compression:

Stored size: 626 Bytes

Contents

require File.join(File.dirname(__FILE__), 'spec_helper')

describe Shining do
  after do Shining.quiet! end
  
  it 'fetches the version on Shining::VERSION' do
    Shining::VERSION.should == File.read(Shining.root + '/VERSION')
  end
  
  context 'quiet and verbose' do
    it '#verbose! means it will output to the console' do
      STDOUT.should_receive :puts
      Shining.verbose!
      Shining.say 'whelps, handle it!'
    end
    
    it '#quiet! means nothing will be outputted to the console' do
      STDOUT.should_not_receive :puts
      Shining.quiet!
      Shining.say "whelps, handle it!"      
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
shining-2.0.1 spec/shining_spec.rb
shining-2.0.0 spec/shining_spec.rb
shining-1.3.7 spec/shining_spec.rb
shining-1.3.6 spec/shining_spec.rb
shining-1.3.5 spec/shining_spec.rb