Return-Path: Delivered-To: apmail-buildr-dev-archive@www.apache.org Received: (qmail 62393 invoked from network); 18 Feb 2009 15:53:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Feb 2009 15:53:09 -0000 Received: (qmail 53313 invoked by uid 500); 18 Feb 2009 15:53:09 -0000 Delivered-To: apmail-buildr-dev-archive@buildr.apache.org Received: (qmail 53292 invoked by uid 500); 18 Feb 2009 15:53:09 -0000 Mailing-List: contact dev-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 dev@buildr.apache.org Delivered-To: moderator for dev@buildr.apache.org Received: (qmail 19170 invoked by uid 99); 18 Feb 2009 14:48:49 -0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of antoine.toulme@gmail.com designates 209.85.217.164 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:reply-to:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=JwPvTIYS2INIGyhsPj80paVYJZ4wEILRzk50uANk97g=; b=iY6hzKJVCcd1X2+02AH1zFb79DDO5sTfvdKBd2ERcSxTzx9UBdYQlXIUXAM3rrNsCX OT9+71/yybsBq046ZWqHXriSr9qD5g4Zr+ixnrfzjES5gGbywDgUlXh14FDa6tMTjar0 DU6C/dcj0Cjt63EYpZPy+RWfTKpj7fAv49mLQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:date:x-google-sender-auth:message-id :subject:from:to:content-type; b=aClaPhVhEwCRI0mq2xl3fEmZvpAsQGCaDvQzVx6N23fMPIqP8AVr4Hdt59k/DKIC30 Ob74FaFHXGQEALNf09Qg66XPDlDCEQigMWnpsI9QbJp+e+lxnOBCNyo4AJjyMfdS1w7c zoXWR6j4bZnjL8pion3TE5XwgmkxO4X7lOcEQ= MIME-Version: 1.0 Sender: antoine.toulme@gmail.com Reply-To: antoine@lunar-ocean.com Date: Wed, 18 Feb 2009 15:48:22 +0100 X-Google-Sender-Auth: 27841e0fd00d6798 Message-ID: Subject: Running a test suite against Buildr with Cucumber From: Antoine Toulme To: buildr-dev@apache.org Content-Type: multipart/alternative; boundary=001517576834e7d4a10463328201 X-Virus-Checked: Checked by ClamAV on apache.org --001517576834e7d4a10463328201 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Howdy guys, we are developing Buildr4eclipse and we made the switch to Cucumber to run our tests. We have a hard time interfacing with Buildr. What we did so far: 1. We used braid, as Assaf had recommended, to hook ourselves against a working copy of Buildr. 2. We require the spec/spec_helpers.rb file so we have access to Buildr internals. We run our test suite with this assertion: define('foo').compile.compiler.should eql(:pdec) Which fails with this error: undefined method `from' for []>:Rake::Task (NoMethodError) /Users/antoine/perso/buildr4eclipse/buildr/lib/buildr/core/compile.rb:533:in `compile' This happens because the before_define hook defined in the Compile module is not executed. The Compile module is present on the Buildr::Project class though. Does this ring a bell ? Note that we reproduce the problem even after uninstalling all Buildr gems from our system. Thanks, Antoine --001517576834e7d4a10463328201--