On 7/13/07, rockrep <rock...@gmail.com> wrote:
> Hi,
> I'm using Buildr v. 1.2.0, rspec 1.0.5
Turns out to be a classic mistake. I wrote some smart code -- using sub!()
to replace =~ and a sub() -- figuring it's short enough that it could not go
wrong. Some edits ago it did go wrong. So fixed in SVN.
And lesson. Don't write smart code to save a few keystrokes.
Assaf
Two similar check expectations, one works, the other fails. I would
> expect both to work.
> # this works
> check package(:jar).path("content_720x480"), "should
> contain test/test2.efx" do
> it.should contain("test/test2.efx")
> end
> # this doesn't - bug in check?
> check package(:jar).path("content_720x480/test"),
> "should contain test2.efx" do
> it.should contain("test2.efx") # Rakefile:435
> end
> content_720x480/ should contain test/test2.efx
> content_720x480/test/ should contain test2.efx
> /home/michael/p4/devaux/prototyping/mclaren/Rakefile:435
> content_720x480/test/ should contain test2.efx
> Expected content_720x480/test/ to contain 'test2.efx'
> rake aborted!
> Thanks,
> Michael