Sha256: 493f9cb913d7e2bf4f8b1d605b54f7b2daf1c07f1a0268a6a3d5ed540f7c2fe6

Contents?: true

Size: 1.12 KB

Versions: 151

Compression:

Stored size: 1.12 KB

Contents

require 'spec_helper'

describe Listen::Adapters::Linux do
  if linux?
    if Listen::Adapters::Linux.usable?
      it "is usable on Linux" do
        described_class.should be_usable
      end

      it_should_behave_like 'a filesystem adapter'
      it_should_behave_like 'an adapter that call properly listener#on_change'

      describe '#initialize' do
        context 'when the inotify limit for watched files is not enough' do
          before { INotify::Notifier.any_instance.should_receive(:watch).and_raise(Errno::ENOSPC) }

          it 'fails gracefully' do
            described_class.any_instance.should_receive(:abort).with(described_class::INOTIFY_LIMIT_MESSAGE)
            described_class.new(File.dirname(__FILE__))
          end
        end
      end
    else
      it "isn't usable on Linux with #{RbConfig::CONFIG['RUBY_INSTALL_NAME']}" do
        described_class.should_not be_usable
      end
    end
  end

  if mac?
    it "isn't usable on Mac OS X" do
      described_class.should_not be_usable
    end
  end

  if windows?
    it "isn't usable on Windows" do
      described_class.should_not be_usable
    end
  end
end

Version data entries

151 entries across 107 versions & 4 rubygems

Version Path
classiccms-0.6.7 vendor/bundle/gems/sass-3.1.19/vendor/listen/spec/listen/adapters/linux_spec.rb
sass-3.3.0.alpha.9 vendor/listen/spec/listen/adapters/linux_spec.rb
sass-3.2.2 vendor/listen/spec/listen/adapters/linux_spec.rb
sass-3.3.0.alpha.8 vendor/listen/spec/listen/adapters/linux_spec.rb
sass-3.3.0.alpha.15 vendor/listen/spec/listen/adapters/linux_spec.rb
classiccms-0.6.6 vendor/bundle/gems/sass-3.1.19/vendor/listen/spec/listen/adapters/linux_spec.rb
classiccms-0.6.6 vendor/bundle/gems/sass-3.1.18/vendor/listen/spec/listen/adapters/linux_spec.rb
classiccms-0.6.5 vendor/bundle/gems/sass-3.1.18/vendor/listen/spec/listen/adapters/linux_spec.rb
classiccms-0.6.5 vendor/bundle/gems/sass-3.1.19/vendor/listen/spec/listen/adapters/linux_spec.rb
classiccms-0.6.4 vendor/bundle/gems/sass-3.1.19/vendor/listen/spec/listen/adapters/linux_spec.rb
classiccms-0.6.4 vendor/bundle/gems/sass-3.1.18/vendor/listen/spec/listen/adapters/linux_spec.rb
classiccms-0.6.3 vendor/bundle/gems/sass-3.1.18/vendor/listen/spec/listen/adapters/linux_spec.rb
classiccms-0.6.3 vendor/bundle/gems/sass-3.1.19/vendor/listen/spec/listen/adapters/linux_spec.rb
classiccms-0.6.2 vendor/bundle/gems/sass-3.1.18/vendor/listen/spec/listen/adapters/linux_spec.rb
classiccms-0.6.2 vendor/bundle/gems/sass-3.1.19/vendor/listen/spec/listen/adapters/linux_spec.rb
classiccms-0.6.1 vendor/bundle/gems/sass-3.1.18/vendor/listen/spec/listen/adapters/linux_spec.rb
classiccms-0.6.1 vendor/bundle/gems/sass-3.1.19/vendor/listen/spec/listen/adapters/linux_spec.rb
classiccms-0.6.0 vendor/bundle/gems/sass-3.1.19/vendor/listen/spec/listen/adapters/linux_spec.rb
classiccms-0.6.0 vendor/bundle/gems/sass-3.1.18/vendor/listen/spec/listen/adapters/linux_spec.rb
classiccms-0.5.17 vendor/bundle/gems/sass-3.1.18/vendor/listen/spec/listen/adapters/linux_spec.rb