Re: [rspec-users] No Method Error

2013-11-22 Thread David Chelimsky
Is it that you don't understand the error message or you don't understand
what to do about it?


On Fri, Nov 22, 2013 at 9:39 AM, Richard Jones  wrote:

> Hi,
>
> I'm getting the error below, can someone explain what I need to do?
>
> Failure/Error: @numbers.exchange(1).should be_true
> NoMethodError:
>  private method 'exchange' called for #
> # ./numbers_spec.rb:55:in 'block (2 levels) in '
>
> Greatly appreciated
>
> Richy
>
> --
> Posted via http://www.ruby-forum.com/.
> ___
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] No Method Error

2013-11-22 Thread Richard Jones
Hi,

I'm getting the error below, can someone explain what I need to do?

Failure/Error: @numbers.exchange(1).should be_true
NoMethodError:
 private method 'exchange' called for #
# ./numbers_spec.rb:55:in 'block (2 levels) in '

Greatly appreciated

Richy

-- 
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users


Re: [rspec-users] no method error

2008-01-20 Thread David Chelimsky
On Jan 20, 2008 7:52 PM, G-man <[EMAIL PROTECTED]> wrote:
> I've set up my tests, and when I run the whole thing, I get this for my
> views:
>
> 3)
>  NoMethodError in '/chapters/new.html.erb should render new form'
>  undefined method `process_clean_up_fixtures' for
> #
>  c:/rails/rails_apps/tracker/spec/views/chapters/new.html.erb_spec.rb:15
> script/spec:4:

Can we see some code? What do the spec and the view look like?

> Also, no word on my autotest question?
>
> c:\rails\rails_apps\tracker>autotest
> loading autotest/rails_rspec
> from
> C:\Rails\rails_apps\tracker\vendor\plugins\rspec_on_rails\lib\autotest\rails_rspec.rb
>  C:\Rails\ruby\bin\ruby -rrubygems -e "require 'redgreen'"  -S script/spec
> -O spec/spec.opts  spec/controllers/chapters_routing_spec.rb
>  invalid option: -O
> Test::Unit automatic runner.
>  Usage: -e [options] [-- untouched arguments]

There was another thread about this just a day or two ago. Not sure
what exactly the problem is, but there seems to be conflict with
redgreen and the changes to autotest in ZenTest-3.8.0. Get rid of that
and it should work.

>
> The script/spec spec/models, etc tests run just fine, however ... it's only
> the autotest and these view things that are hanging up ...
>
> Thanks,
>
> G
>
> --
> Happiness is not to have what you want,
> But to want what you have!
> Gregor Jovanovich 714 651 9969 ...
> Father to some, Friend to all
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users