Is it possible in rails to have params like this or syntax of params like
this?
<% @users.each do |user| %>
<% @menus.each do |menu| %>
*params["user.name" "menu.id"]*
<% end %>
<% end %>
--
View this message in context:
http://ruby.11.x6.nabble.com/help-Rails-params-tp49930
Hello I've got somthing like this error in my rspec. Can you help me to fix
this:
I appreciate all those replies.
Failures:
1) EmployeeMstsController PUT update with valid params updates the
requested e
mployee_mst
Failure/Error: put :update, :id => employee_mst.id, :employee_mst =>
{'thes
<%= link_to 'Destroy', department_mst, :confirm => 'Are you sure?', :method
=> :delete %>
( :confirm => 'Are you sure?', :method => :delete) => this is not
functioning when I created the rspec
Please help me. Thanks!
--
View this message in context:
http://ruby.11.x6.nabble.com/error-link-to-
Hello!
I am getting error with destroy. If I've click destroy, it redirects to
show.
And that should happen. It should prompt a confirmation if you want to
delete.
Can you help me in this case.
--
View this message in context:
http://ruby.11.x6.nabble.com/error-link-to-destroy-tp4991678.html
S
Hello!I am getting error with destroy. If I've click destroy, it redirects to
show.And that should happen. It should prompt a confirmation if you want to
delete. Can you help me in this case.___
rspec-users mailing list
rspec-users@rubyforge.org
http://
Problem solved!!!
--
View this message in context:
http://ruby.11.x6.nabble.com/RSpec-in-controller-tp4991621p4991676.html
Sent from the rspec-users mailing list archive at Nabble.com.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rub
On my _form.html.erb, I have this:
<%= f.select :group_name, options_for_select(@group_mst.collect{|x|
[x.group_name]}), {:multiple => :multiple} %>
-
On my user_mst_controller.rb:
def new
@user_
Yes I've done that. I think it is on rendering on causes
error.-On
my _form.html.erb, I have this:
<%= f.select :group_name, options_for_select(@group_mst.collect{|x|
[x.group_name]}), {:multiple => :mul
C:\Documents and Settings\Oliver\Desktop\ams>rspec
spec/views/user_msts/new.html.erb_spec.rb:19 --backtraceRun filtered including
{:line_number=>19}F
Failures:
1) user_msts/new.html.erb renders new user_mst form Failure/Error: # Run
the generator again with the --webrat flag if yo
# ./app/views/employee_msts/new.html.erb:3:in
`_app_views_employee_msts_new
_html_erb__385952098_22995768_655956278'
#
C:/Ruby192/lib/ruby/gems/1.9.1/gems/actionpack-3.0.9/lib/action_view/temp
late.rb:135:in `block in render'
#
C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.0.9/
--- On Mon, 6/10/13, David Chelimsky-2 [via Ruby]
wrote:
From: David Chelimsky-2 [via Ruby]
Subject: Re: renders new/edit user_mst form
To: "oliver"
Date: Monday, June 10, 2013, 9:57 AM
On Mon, Jun 10, 2013 at 4:39 AM, oliver <[hidden email]> wrote:
def ne
<%= f.select :group_name, options_for_select(@group_mst.collect{|x|
[x.group_name]}), {:multiple => :multiple} %>
that is on the line 44.
--
View this message in context:
http://ruby.11.x6.nabble.com/help-renders-new-edit-user-mst-form-tp4991623p4991630.html
Sent from the rspec-users mailing
def new
@user_mst = UserMst.new
@group_mst = GroupMst.all
respond_to do |format|
format.html # new.html.erb
format.xml { render :xml => @user_mst }
end
end
def edit
@user_mst = UserMst.find(params[:id])
@group_mst = GroupMst.all
end
def
--- On Mon, 6/10/13, David Chelimsky-2 [via Ruby]
wrote:
From: David Chelimsky-2 [via Ruby]
Subject: Re: renders new/edit user_mst form
To: "oliver"
Date: Monday, June 10, 2013, 9:36 AM
On Mon, Jun 10, 2013 at 4:25 AM, oliver <[hidden email]> wrote:
<%= f
def new
@user_mst = UserMst.new
@group_mst = GroupMst.all
respond_to do |format|
format.html # new.html.erb
format.xml { render :xml => @user_mst }
end
end
def edit
@user_mst = UserMst.find(params[:id])
@group_mst = GroupMst.all
end
def create
<%= f.select :group_name, options_for_select(@group_mst.collect{|x|
[x.group_name]}), {:multiple => :multiple} %>
that is on the line 44.
--
View this message in context:
http://ruby.11.x6.nabble.com/help-renders-new-edit-user-mst-form-tp4991623p4991629.html
Sent from the rspec-users mailing l
Finished in 14.39 seconds
173 examples, 6 failures, 5 pending
Failed examples:
rspec ./spec/views/department_msts/edit.html.erb_spec.rb:12 #
department_msts/ed
it.html.erb renders the edit department_mst form
rspec ./spec/views/department_msts/new.html.erb_spec.rb:12 #
department_msts/new
.html.e
Hello! I need a little help.
If I run my rspec (rspec spec --backtrace) I've got error like this.Please help
my. I greatly appreciated your answers.
Finished in 14.39 seconds173 examples, 6 failures, 5 pending
Failed examples:
rspec ./spec/views/department_msts/edit.html.erb_spec.rb:12 #
departme
late.rb:135:in `block in render'
#
C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.0.9/lib/active_suppor
t/notifications.rb:52:in `block in instrument'
#
C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.0.9/lib/active_suppor
t/notifications/instrumenter.rb:21:in `instrument'
#
SSL routes (Aashish Kiran)
4. Re: Fuzzy should_receive matching (Alexander Baronec)
5. Error uccored while evaluating nil.collect (Oliver Jesus)
--
Message: 1
Date: Thu, 30 May 2013 11:44:19 +0400
From: Alexander Baronec
Hello, I am new to RSpec and I've got error something like this:
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.collect
In my controller:
def new
@employee_mst = EmployeeMst.new
@branch_mst = Br
8, 2009 at 12:02 PM, Oliver Barnes
> wrote:
>> thanks! had given up on this already. changing to the new syntax
>>
>> Image.stub!(:find, :return => @image)
>
> Not sure where you got this syntax from, but it doesn't do anything.
> Options are:
>
> Image.st
n the
> documentation
>
> http://github.com/jeremymcanally/stump
>
> Regards
>
> On Wed, Aug 26, 2009 at 1:19 AM, Oliver Barnes
> wrote:
>>
>> Hello,
>>
>> I'm struggling with this controller spec for a few hours now
>>
>> http://pastie.org/5
it works better.
>
> Is there ANY chance that Image or one of it's superclasses has defined
> a stub! method which would override the one in Spec::Mocks::Methods ?
>
> On Fri, Aug 28, 2009 at 6:02 PM, Oliver
> Barnes wrote:
>> sorry to bother again, but no luck even a
sorry to bother again, but no luck even after reinstalling rspec + rspec-rails:
Big-Mac:spree(product-image-updates-fix) $ spec
spec/controllers/admin/images_controller_spec.rb --backtrace
/Users/oliver/Sites/spree/app/controllers/products_controller.rb:41:
warning: parenthesize argument(s) for
x27;t understand,
> stub!() appears to be returning a Proc instead of a mock proxy object.
>
> On Thu, Aug 27, 2009 at 9:35 AM, Oliver
> Barnes wrote:
>> does that shed any light?
>>
>> 2009/8/26 Oliver Barnes :
>>> sure thing:
>>>
>>> http://
does that shed any light?
2009/8/26 Oliver Barnes :
> sure thing:
>
> http://pastie.org/595363
>
> 2009/8/26 David Chelimsky :
>> On Tue, Aug 25, 2009 at 6:19 PM, Oliver
>> Barnes wrote:
>>> Hello,
>>>
>>> I'm struggling with this co
sure thing:
http://pastie.org/595363
2009/8/26 David Chelimsky :
> On Tue, Aug 25, 2009 at 6:19 PM, Oliver
> Barnes wrote:
>> Hello,
>>
>> I'm struggling with this controller spec for a few hours now
>>
>> http://pastie.org/594775
>>
>> which
d find the image requested
undefined method `and_return' for #
/Users/oliver/Sites/spree/spec/controllers/admin/images_controller_spec.rb:17
/tmp/textmate-command-1859.rb:3
15 before(:each) do
16@image = mock_model(Image, :to_param => "1")
17Image.stub!(:find).an
/Library/Ruby/Gems/1.8/gems/cucumber-0.2.3/bin/cucumber:6
from /usr/bin/cucumber:19:in `load'
from /usr/bin/cucumber:19
what's the correct way to do this?
- Oliver
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
gotten stuck in writing features with my client, without patterns to
draw from.
2009/3/13 aslak hellesoy :
>
>
> On Fri, Mar 13, 2009 at 3:22 PM, Oliver Barnes
> wrote:
>>
>> I'm looking for feature examples for web apps, I imagine Balint is as
>> well?
>
>
I'm looking for feature examples for web apps, I imagine Balint is as well?
2009/3/11 Matt Wynne :
>
> On 11 Mar 2009, at 19:46, Zach Dennis wrote:
>
>> On Wed, Mar 11, 2009 at 3:03 PM, Balint Erdi wrote:
>>>
>>> Hi,
>>>
>>> I was looking for some "real-world" cucumber features (mainly on github)
+1
I'm also looking for examples... I've seen several
authentication-related ones, but very few examples of features that
users would actually care a lot about, and that would help in learning
outside-in development...
2009/3/11 Andrew Premdas :
> You could have a look at fbrp on github, which has
eza se têm
suporte, estou testando just in case), ele não reconhece:
./features/step_definitions/busca_de_tese_steps.rb:1: undefined method
`Dado' for # (NoMethodError)
2009/2/17 David Chelimsky :
> Oi Oliver,
>
> Poderia ver o codigo aqui:
> http://github.com/
(it responds "0 Scenarios", not "0 Features", btw)
2009/2/18 Oliver Barnes :
> Valeu David! muito bom poder falar com o mestre em português :)
>
> Mas eu tentei com estes, tanto com passos em inglês como em português:
>
> http://pastie.org/392962
>
sorry to bump this up, I am the only one experiencing this problem?
anybody else running cucumber in other languages?
2009/2/14 Oliver Barnes :
> Hello,
>
> I've just installed cucumber 0.1.99, and it looks like the Portuguese
> step keywords aren't recognized for some reas
/adicao.feature
When I switch to the original English keywords, it runs fine. I've
also tried using "Característica", instead of "Funcionalidade" for the
translation of "Feature", but that didn't work either.
Is this a bug,
I should explain I'm running the tests from textmate.
So for those interested in doing the same I changed the "Run Examples"
command in the RSpec bundle to:
#!/usr/bin/env ruby
require ENV['TM_BUNDLE_SUPPORT'] + "/lib/spec/mate"
require 'spec/runner/formatter/html_formatter'
module Spec::Runner:
How do you hide all the green passing examples from the output?
I don't need to know what has passed and it means I have to scroll to
see what has failed.
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
ht
I got the spec and controller minimally working now, here's the code
paste for both in full.
http://pastie.caboo.se/165743
still working on it, any suggestions on possible improvements would be
greatly appreciated.
2008/3/14, Oliver Barnes <[EMAIL PROTECTED]>:
> thanks, will d
ROTECTED]>:
> And the other thing I am not seeing you are calling create
> somewhere in the spec?
>
> Always a good idea to post all the code :-)
>
>
> Cheers
> Shane
>
>
> On 14/03/2008, at 12:55 PM, Oliver Barnes wrote:
>
>
> > I see. I h
thanks, will do - I am still wrapping my mind around mocks and stubs indeed :)
2008/3/13, Pat Maddox <[EMAIL PROTECTED]>:
> On Thu, Mar 13, 2008 at 4:55 PM, Oliver Barnes
>
> <[EMAIL PROTECTED]> wrote:
>
> > I see. I had gotten to trying the first way you suggested (
e...
2008/3/13, Pat Maddox <[EMAIL PROTECTED]>:
> On Thu, Mar 13, 2008 at 3:54 PM, Oliver Barnes
>
> <[EMAIL PROTECTED]> wrote:
>
> > thanks pat, it's still a good primer ;)
> >
> > I'm getting a better handle at it, but I'm st
gt;:
> On Mon, Mar 10, 2008 at 2:01 PM, Oliver Barnes
> <[EMAIL PROTECTED]> wrote:
> > hello spec'ers,
> >
> > i'm in the hunt for guides on testing controllers with rspec, would
> > you guys recommend any?
>
>
> Oldie but goodie (I hope) -
&
hello spec'ers,
i'm in the hunt for guides on testing controllers with rspec, would
you guys recommend any?
thanks
Oliver
--
Oliver Azevedo Barnes
[EMAIL PROTECTED]
+55 11 9768 0193
http://www.linkedin.com/in/oliverbarnes
http://workingwithrails.com/person/4704-oli
't be happening?
here's the stack-trace:
rake aborted!
Command ruby -I"/Users/oliver/Sites/portfolio/vendor/plugins/rspec/lib"
"/Users/oliver/Sites/portfolio/vendor/plugins/rspec/bin/spec"
"spec/controllers/categories_controller_spec.rb"
"spec/control
pp a while back, the database.yml
used the sqlite adapter instead of mysql (I'd forgotten about this) -
once I switched back to mysql, where the database was prepared, the
flunking tests starting passing. :P
- Oliver
2008/3/4, Namrata Tiwari <[EMAIL PROTECTED]>:
> Here is a very good
and I've been stuck for a while already :P
any help greatly appreciated, please bear with the newbie :)
Oliver
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
command line. it still doesn't work from locomotive though.
2008/2/25, Oliver Barnes <[EMAIL PROTECTED]>:
> Hello,
>
> I've just installed the rspec textmate bundle from svn, and I'm
> getting the following error when I try to run a single example:
>
> /User
Hello,
I've just installed the rspec textmate bundle from svn, and I'm
getting the following error when I try to run a single example:
/Users/oliver/Library/Application
Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/mate.rb:2:in
`require': No such file to load -- ruby
50 matches
Mail list logo