Hi,
I keep facing problems with autotest, and I don't know what's happening
in the background, is there anyway to know what's happening while
testing?
Example:
@user = User.new
@user.email = "testcom"
@user.errors.on(:email).should_not be_empty
...throws error failure
- You have a nil object wh
I want my class Reader to loop on the content of its Stack until false is
returned. I also want an optional argument to exist that limits how many
times the stack will be read, even if some elements are left. I was trying
to spec this last bit but ended up on a false positive.
Hope the example w
On Nov 1, 2007 5:26 AM, pangel <[EMAIL PROTECTED]> wrote:
>
> I want my class Reader to loop on the content of its Stack until false is
> returned. I also want an optional argument to exist that limits how many
> times the stack will be read, even if some elements are left. I was trying
> to spec t
Hi folks,
Can anyone share some accumulated wisdom about the best way to spec
mixins in general, and (Jamis Buck-style) ActiveRecord "concerns" in
particular?
The standard situation here is that there's a bunch of functionality,
related by concept if not by implementation, that one wants to
Yes this would make sense, or the mock could just stop sending the values as
soon as it does not receive messages anymore.
Obviously I prefer this second behaviour because it would, I think, make my
specs work correctly. But from a logical point of view as well, this works
for me. If the mock com
On Nov 1, 2007, at 6:18 AM, Jamal Soueidan wrote:
> Hi,
>
> I keep facing problems with autotest, and I don't know what's
> happening
> in the background, is there anyway to know what's happening while
> testing?
>
> Example:
> @user = User.new
> @user.email = "testcom"
> @user.errors.on(:email
On Oct 31, 2007, at 7:33 pm, Jim Deville wrote:
> Can I get that! That sounds nice... (probably simpler than i think)
Sure, this is all there is to it:
2> ~/Documents/Development/bdd % cat update-rspec-gem.sh
#!/usr/bin/env bash
cd ~/Documents/Development/bdd/rspec-trunk
svn updat
On Oct 31, 2007, at 7:46 pm, David Chelimsky wrote:
> Interestingly enough, there is another thread today expressing
> dissatisfaction with 1.x and trunk. Can't please everybody :)
You could always do what Rails does and offer a beta gem repository,
so you can install with --source ? That way
One thing that is bothering me about my controller specs is that
sometimes I end up with a number of examples that are the same except
for the example name.
The reason that this happens is that I've expressed all the expected
behavior with should_receive. While this does more or less work as
inten
On Sat, 2007-10-27 at 13:10 -0400, Scott Taylor wrote:
> Running rails 1.2.3, rcov (0.8.0.2), rspec trunk (2865) -
>
> When running rake spec:rcov, I'm getting the following:
>
> Finished in 245.717813 seconds
>
> 856 examples, 0 failures, 48 pending
> /usr/local/lib/ruby/1.8/rexml/text.rb:292:i
Hey guys,
I'm running spec_server and using --drb with my specs in Rails, and
I'm seeing virtually no speed up. I'm using rspec/rspec_on_rails
trunk. Is there something I'm doing wrong?
TIA,
Jeremy
--
Jeremy Stephens Computer Systems Analyst ISchool of Medicine
Depart
I would like to remove some unused helpers from the app/helpers dir, but
when I do so my specs fail.
Why is this? I don't see where those helpers are referenced within the
tests. Is there a way to delete these unused files?
Thanks
--
Posted via http://www.ruby-forum.com/.
__
On 11/1/07, Jeremy Stephens <[EMAIL PROTECTED]> wrote:
> Hey guys,
>
> I'm running spec_server and using --drb with my specs in Rails, and
> I'm seeing virtually no speed up. I'm using rspec/rspec_on_rails
> trunk. Is there something I'm doing wrong?
>
It's a regression I'm planning to fix this
A stacktrace would help
On 11/1/07, Chris Olsen <[EMAIL PROTECTED]> wrote:
> I would like to remove some unused helpers from the app/helpers dir, but
> when I do so my specs fail.
>
> Why is this? I don't see where those helpers are referenced within the
> tests. Is there a way to delete these un
just a short advice:
describe MyModule do
it "should do something" do
# The module is automatically mixed into your spec
end
end
Aslak
On 11/1/07, Tom Stuart <[EMAIL PROTECTED]> wrote:
> Hi folks,
>
> Can anyone share some accumulated wisdom about the best way to spec
> mixins in general
> A stacktrace would help
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -S
script/spec -O spec/spec.opts spec/views/addresses/show.rhtml_spec.rb
spec/helpers/addresses_helper_spec.rb
spec/views/addresses/index.rhtml_spec.rb
spec/views/addresses/edit.rhtml_spec.rb
spec
On Nov 1, 2007, at 7:30 PM, aslak hellesoy wrote:
> just a short advice:
>
> describe MyModule do
> it "should do something" do
> # The module is automatically mixed into your spec
> end
> end
>
> Aslak
I suppose it really depends on how static/dynamic the module is.
This seems to wor
On Nov 1, 2007, at 7:27 PM, aslak hellesoy wrote:
> On 11/1/07, Jeremy Stephens <[EMAIL PROTECTED]> wrote:
>> Hey guys,
>>
>> I'm running spec_server and using --drb with my specs in Rails, and
>> I'm seeing virtually no speed up. I'm using rspec/rspec_on_rails
>> trunk. Is there something I'm
On Nov 1, 2007, at 5:08 PM, Jeremy Stephens wrote:
> Hey guys,
>
> I'm running spec_server and using --drb with my specs in Rails, and
> I'm seeing virtually no speed up. I'm using rspec/rspec_on_rails
> trunk. Is there something I'm doing wrong?
>
Same here. AFAIK, all the drb server does is
On Fri, 2007-11-02 at 00:39 +0100, Chris Olsen wrote:
> > A stacktrace would help
>
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -S
> script/spec -O spec/spec.opts spec/views/addresses/show.rhtml_spec.rb
> spec/helpers/addresses_helper_spec.rb
Looks like you still h
20 matches
Mail list logo