Sha256: 51e11175994516404dc2fe8b5ed2b5589ee2014c0b33ca9aa0582139c257a4d2

Contents?: true

Size: 1.63 KB

Versions: 8

Compression:

Stored size: 1.63 KB

Contents

require 'spec_helper'

module RSpec::FileMatchers
  describe HaveSymlink do
    describe '#have_symlink' do
      include FileHelper
      
      before :each do   
        remove_all_test
      end

      after :each do
        remove_all_test
      end

      it "should not have symlink file" do
        nil.should_not have_symlink sym_test_file
      end
      
      it "should have symlink file" do
        make_test_symlink_file        
        nil.should have_symlink sym_test_file
      end
          
      it "should not have symlink dir" do
        nil.should_not have_symlink sym_test_dir
      end
      
      it "should have symlink dir" do      
        make_test_symlink_dir
        nil.should have_symlink sym_test_dir
      end

      it "should not have symlink dirs" do      
        nil.should_not have_symlinks sym_test_dirs
      end

      it "should not have symlink files" do      
        nil.should_not have_symlinks sym_test_files
      end
      
      it "should have symlink dirs" do      
        make_test_symlink_dirs
        nil.should have_symlinks sym_test_dirs
      end
      
      it "should have symlink files" do      
        make_test_symlink_files
        nil.should have_symlinks sym_test_files
      end

      it "should have symlink dirs" do      
        make_test_symlink_dirs
        nil.should have_symlink_dirs sym_test_dirs
        nil.should_not have_symlink_files sym_test_dirs
      end
      
      it "should have symlink files" do      
        make_test_symlink_files
        nil.should have_symlink_files sym_test_files
        nil.should_not have_symlink_dirs sym_test_files
      end

    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
file-spec-0.4.0 spec/file-spec/matchers/single/have_symlink_spec.rb
file-spec-0.3.0 spec/file-spec/matchers/single/have_symlink_spec.rb
file-spec-0.2.0 spec/file-spec/matchers/single/have_symlink_spec.rb
file-spec-0.1.5 spec/file-spec/matchers/single/have_symlink_spec.rb
file-spec-0.1.4 spec/file-spec/matchers/single/have_symlink_spec.rb
file-spec-0.1.3 spec/file-spec/matchers/single/have_symlink_spec.rb
file-spec-0.1.2 spec/file-spec/matchers/single/have_symlink_spec.rb
file-spec-0.1.1 spec/file-spec/matchers/single/have_symlink_spec.rb