Return-Path: Delivered-To: apmail-buildr-commits-archive@www.apache.org Received: (qmail 13216 invoked from network); 3 Nov 2010 15:47:26 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Nov 2010 15:47:26 -0000 Received: (qmail 4924 invoked by uid 500); 3 Nov 2010 15:47:57 -0000 Delivered-To: apmail-buildr-commits-archive@buildr.apache.org Received: (qmail 4901 invoked by uid 500); 3 Nov 2010 15:47:56 -0000 Mailing-List: contact commits-help@buildr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@buildr.apache.org Delivered-To: mailing list commits@buildr.apache.org Received: (qmail 4890 invoked by uid 99); 3 Nov 2010 15:47:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 15:47:56 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Nov 2010 15:47:53 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 400E823888BD; Wed, 3 Nov 2010 15:46:39 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1030503 - in /buildr/trunk: lib/buildr.rb spec/core/shell_spec.rb spec/spec_helpers.rb Date: Wed, 03 Nov 2010 15:46:39 -0000 To: commits@buildr.apache.org From: boisvert@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101103154639.400E823888BD@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: boisvert Date: Wed Nov 3 15:46:38 2010 New Revision: 1030503 URL: http://svn.apache.org/viewvc?rev=1030503&view=rev Log: More RSpec-related tweaks; specs now run on Ruby 1.9 Modified: buildr/trunk/lib/buildr.rb buildr/trunk/spec/core/shell_spec.rb buildr/trunk/spec/spec_helpers.rb Modified: buildr/trunk/lib/buildr.rb URL: http://svn.apache.org/viewvc/buildr/trunk/lib/buildr.rb?rev=1030503&r1=1030502&r2=1030503&view=diff ============================================================================== --- buildr/trunk/lib/buildr.rb (original) +++ buildr/trunk/lib/buildr.rb Wed Nov 3 15:46:38 2010 @@ -32,6 +32,6 @@ class << self ; include Buildr ; end class Object #:nodoc: Buildr.constants.each do |name| const = Buildr.const_get(name) - const_set name, const if const.is_a?(Module) && name != "RSpec" + const_set name, const if const.is_a?(Module) && name.to_s != "RSpec" end end Modified: buildr/trunk/spec/core/shell_spec.rb URL: http://svn.apache.org/viewvc/buildr/trunk/spec/core/shell_spec.rb?rev=1030503&r1=1030502&r2=1030503&view=diff ============================================================================== --- buildr/trunk/spec/core/shell_spec.rb (original) +++ buildr/trunk/spec/core/shell_spec.rb Wed Nov 3 15:46:38 2010 @@ -102,7 +102,7 @@ describe Project, '.shell' do end end -describe "shell provider", :shared=>true do +shared_examples_for "shell provider" do it 'should have launch method accepting shell task' do @instance.method(:launch).should_not be_nil Modified: buildr/trunk/spec/spec_helpers.rb URL: http://svn.apache.org/viewvc/buildr/trunk/spec/spec_helpers.rb?rev=1030503&r1=1030502&r2=1030503&view=diff ============================================================================== --- buildr/trunk/spec/spec_helpers.rb (original) +++ buildr/trunk/spec/spec_helpers.rb Wed Nov 3 15:46:38 2010 @@ -357,7 +357,7 @@ unless defined?(SpecHelpers) end - RSpec.configure do |config| + ::RSpec.configure do |config| # Make all Buildr methods accessible from test cases, and add various helper methods. config.include Buildr config.include SpecHelpers