summaryrefslogtreecommitdiff
path: root/spec/ruby/library/find/prune_spec.rb
blob: 25dc2cbf3ebbee5de6dcdbc085b0f38cffde8b7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
require_relative '../../spec_helper'
require 'find'

describe "Find.prune" do
  it "should throw :prune" do
    msg = catch(:prune) do
      Find.prune
    end

    msg.should == nil
  end
end