Hi
I have the following code:
def will_paginate(items, options = {})
options = options.merge(:container => true, :class => 'paging')
super(items, options)
end
I am curious about how to test that the call to super is infact being called
with the added options.
I have this
it 'shou
Thanks Nick
the first approach seems the best for my situation.
Appreciate the response
Ivor
On Tue, Dec 9, 2008 at 4:45 PM, Nick Hoffman <[EMAIL PROTECTED]> wrote:
> On 2008-12-09, at 06:29, Ivor Paul wrote:
>
>> Hi
>>
>> I have the following code:
>>
Hi
I found that if I set assigns[:variables] in a spec, the value is maintained
in subsequent specs.
Example
rails helper method:
def return_at_variable
@variable
end
Specs:
#this passes obviously
it 'should return true if assigns[:variable] is true' do
assigns[:variable] = true
Hi Guys
I am trying to spec some rails mailers.
The only info I found was this post
http://kpumuk.info/ruby-on-rails/testing-mailers-with-rspec/
by Dmytro Shteflyuk.
I am hoping there is somewhat more on the topic - could someone point
me towards a resource where I can find more?
Regards
Ivor
_
thanks a lot! This looks great.
On Sun, Dec 14, 2008 at 4:21 AM, Mischa Fierer wrote:
> I found this useful:
> http://madhatted.com/2008/7/10/rspec-real-world-testing
>
>
> On Thu, Dec 11, 2008 at 7:42 AM, Ivor Paul wrote:
>>
>> Hi Guys
>>
>> I am tryin
HI Andrew
I am getting the same problem. I only get it when I install
rspec-rails alongside rspec as gems.
Did you get a resolution to this problem?
Ivor
On Thu, Dec 4, 2008 at 10:54 AM, Andrew Premdas wrote:
> I've got a couple of rake tasks that seem to have broken with rspec 1.1.11.
> http:
The latest rspec-rails and rspec worked for me. Are you using the remarkable
gem?
On Fri, Dec 19, 2008 at 3:08 AM, Andrew Premdas wrote:
> No I don't think so. I'll post something when I next try and get the tasks
> to work
>
> 2008/12/17 Ivor Paul
>
> HI Andrew
Hi Guys
I am really having incredible issues with this error
i...@theluggage:~/workspace/talkies$ rake db:migrate
(in /home/ivor/workspace/talkies)
/usr/lib/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/runner/options.rb:229:in
`files_to_load': File or directory not found: db:migrate (RuntimeError)
Hi.
I am pretty new to rspec so forgive my ignorance.
I am getting errors that seem to be the matchers not working - example:
vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:478:in
`const_missing': uninitialized constant
Spec::Rails::Example::ModelExampleGrou
s.
Thanks for the help.
Ivor
On Tue, Jul 1, 2008 at 10:57 PM, David Chelimsky <[EMAIL PROTECTED]> wrote:
> On Jul 1, 2008, at 3:48 PM, Ivor Paul wrote:
>
>> I am getting errors that seem to be the matchers not working - example:
>>
>>
>> vendor/rails/activerec
t for your help so far.
Regards
Ivor
On Wed, Jul 2, 2008 at 2:02 PM, Ivor Paul <[EMAIL PROTECTED]> wrote:
> Hi David
>
> thanks for the response!
> This is what the error looks like for be_valid
> /activesupport/lib/active_support/dependencies.rb:478:in
> `const_missing
11 matches
Mail list logo