Hi all
For no other good reason than I wanted the Cucumber logo on my
LinkedIn profile - and I'm addicted to creating stuff on LinkedIn - I
created a Cucumber group[1].
Well there is one good reason - more and more people I'm meeting are
looking at Cucumber and using it without considerin
2009/3/21 Guilherme Machado Cirne :
> Hi,
>
> I have the following method in a Rails view helper:
>
> def title
> content_for(:title) do
> # some code which generates a title dynamically
> end
> end
>
> How can I spec that the code inside the block returns the correct title?
My preference
David,
Thanks for the help. On the cucumber/hoe issue, I am running gem version
1.2.0 and when I did a "sudo gem update --system", I got a "Nothing to
update". That may not have been what I'm seeing. The --color makes things
look right.
Thanks again,
Scott
On Sat, Mar 21, 2009 at 7:54 AM, David
On Mon, Mar 16, 2009 at 4:00 AM, Yun Huang Yong wrote:
>
> i.e. something like:
> log_mock.should_receive(:debug) { |log_block|
> # execute log_block, and check its return value
> }
I suppose you could always look at the source code for the debug
method, find out what it does with the result
Hi,
I have the following method in a Rails view helper:
def title
content_for(:title) do
# some code which generates a title dynamically
end
end
How can I spec that the code inside the block returns the correct title?
TIA,
--
Guilherme Machado Cirne
gci...@gmail.com
__
I have this exact same problem. Anyone have a solution?
TIA,
--
Guilherme Machado Cirne
gci...@gmail.com
On Mon, Mar 16, 2009 at 8:00 AM, Yun Huang Yong wrote:
> Hi,
>
> I'm using Log4r and one of its neat features is its handling of blocks such
> that you can do:
> log.debug { "Something b
That's basically what I do. http://gist.github.com/82981 shows one I
wrote a couple days ago. I yield each object because there are like
400k records and I can't keep them in memory. Might be a little nicer
to yield the params hash and let the caller build the object, but I
don't need that flexi
On Fri, Mar 20, 2009 at 11:46 AM, Zach Dennis wrote:
> On Fri, Mar 20, 2009 at 11:11 AM, Zach Dennis
> wrote:
> > 2009/3/18 Rick DeNatale :
> >> I've got a simple ActionMailer::Base subclass:
> >> class InfoMailer < ActionMailer::Base
> >>
> >> def info(user, zip_name)
> >> recipients us
> > describe "count_by_params" do
> > it "should pass all the params and options to #scope_by_params" do
> > params = { :foo => 1, :bar => 2 }
> > options = { :foo => 3, :bar => 4 }
> >
> > @base = ActiveRecord::Base
> > @result = mock("query results", :count => 1)
>
Hi guys,
This is my first post to the mailing list, so apologies if this kind
of question comes up alot already.
I've been working through the Peepcode screencasts on RSpec, and I'm
trying to what I've been learning into practice to make an importer on
a rails app that takes an xml feed,
On Sat, Mar 21, 2009 at 12:53 PM, s.ross wrote:
> In the history.txt for 0.2 is an "important note" toward the bottom of the
> announcement. (
> http://github.com/aslakhellesoy/cucumber/blob/d0555e4ca8a133f020efefd5a755da04bde3f57d/History.txt).
> This is really, *really* important for Rails user
In the history.txt for 0.2 is an "important note" toward the bottom of
the announcement. (http://github.com/aslakhellesoy/cucumber/blob/d0555e4ca8a133f020efefd5a755da04bde3f57d/History.txt
). This is really, *really* important for Rails users, but it can be
more than a bit difficult to Google
On Fri, Mar 20, 2009 at 9:36 AM, beenimble wrote:
> In case of the following error when using Cucumber with Sinatra:
>
> No such file or directory - /usr/local/lib/ruby/gems/1.8/gems/
> polyglot-0.2.4/lib/views/index.erb
>
> Implement env.rb as specified at the following link so your app and
> it
James Byrne wrote:
> In this particular case this was a has_many / belongs_to pair and I was
> attempting a parent.child.create({}) call.
S/B: parent.children.create({})
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-use
David Chelimsky wrote:
>
> What type of association? There are many and they are all handled
> quite differently.
>
In this particular case this was a has_many / belongs_to pair and I was
attempting a parent.child.create({}) call. I discovered thereby that
Rails, at least in version 2.3.2, e
2009/3/20 Scott LaBounty :
> I just found RSpec and was trying to do the example on the main page for
> RSpec (the bowling example). I'm using Ubuntu and did the normal "sudo gem
> install rspec" and then tried to create the bowling_spec.rb file. When I ran
> spec bowling_spec.rb, I was missing the
I just found RSpec and was trying to do the example on the main page for
RSpec (the bowling example). I'm using Ubuntu and did the normal "sudo gem
install rspec" and then tried to create the bowling_spec.rb file. When I ran
spec bowling_spec.rb, I was missing the cucumber gem, installed that, rera
In case of the following error when using Cucumber with Sinatra:
No such file or directory - /usr/local/lib/ruby/gems/1.8/gems/
polyglot-0.2.4/lib/views/index.erb
Implement env.rb as specified at the following link so your app and
its view path may be found (this supersedes prior examples):
http
On Fri, Mar 20, 2009 at 3:32 PM, James Byrne wrote:
> Pardon the intrusion but if somebody knows how to turn off Rails special
> treatment of attributes ending in _type and _value I would dearly like
> to have this information.
>
> Workarounds are accepted too.
>
> I am trying to initialise an ass
That is exactly what I was looking for.. Thank you !
2009/3/21 Tim Walker :
> We're accessing it like this
>
> Before do |scenario|
> puts "Before Scenario: #{scenario.to_sexp[3]}"
> .
> .
> .
> end
>
> HTH,
>
> Tim
>
> On Thu, Mar 19, 2009 at 9:39 PM, Nigel Thorne wrote:
>>
>> Where
20 matches
Mail list logo