[rspec-users] need help getting a word right

barsalou barjunk at attglobal.net
Thu Jul 19 01:08:21 EDT 2007


Well in that specific case, please seems like a good choice

   please do
      @thing.should be_somthing
   end

But If you had text in between then it wouldn't seem the same:

   please "whatever text" do
      @thing.should be_something
   end



Quoting David Chelimsky <dchelimsky at gmail.com>:

> Hey all,
>
> I see examples showing up that look like this:
>
> describe Thing do
>  before(:each) do
>    @thing = Thing.new
>  end
>
>  it do
>    @thing.should be_something
>  end
> end
>
> This will produce output like this:
>
> Thing
> - should be something
>
> But "it do" is driving me mad :(
>
> We need a better word. Of course, 'specify' has not been completely
> removed, so you can still do this:
>
> describe Thing do
>  before(:each) { @thing = Thing.new }
>  specify { @thing.should be_something }
> end
>
> Consise? Yes. But I'm not psyched about 'specify' either. There IS a
> perfect word for this situation. What is it? Suggestions?
>
> Thanks,
> David
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



More information about the rspec-users mailing list