t;, :content =>
"Logout")
If I put :href to be "/home2" or :content to be "Home1" the spec still
passes,
though it shouldn't as I understand.
Does somebody know what I am doing wrong?
Thank you in advance,
Evgeny
_
Hello Mike,
Thank you for your hint. Obviously, it worked!
Laughing at myself now: how post method was supposed to know what I
mean by :viewtype if don't specify it :)
Best,
Evgeny
On Jun 4, 10:14 pm, Mike Sassak wrote:
> Hi Evgeny,
>
> You didn't include the error messag
quot;, no luck.
Could you please let me know how I can call the action through
that route with post method?
Thank you in advance,
Evgeny
=
map.with_options(:controller => "assets", :conditions =>{:method
=> :post}) do |m|
m.create_asset
d scenario
template.stub!(:render) #stub render function
template.should_receive(:render) #check if render function was called
Am I right?
Thanks,
Evgeny
On Mar 18, 11:23 pm, Zach Dennis wrote:
> On Wed, Mar 18, 2009 at 6:18 AM, Evgeny Bogdanov
>
>
>
> wrote:
> > Hello,
>
es
===
Is it possible to stub the render call with specific partial name?
Thank you in advance,
Evgeny
On Jan 20, 5:35 pm, Bart Zonneveld wrote:
> On 20-jan-2009, at 15:29, David Chelimsky wrote:
>
> > On Tue, Jan 20, 2009 at 7:44 AM, Bart Zonneveld
> > wrote:
> >>
Hi rspec-users,
evgeny.zis...@gmail.com has invited you to try Spokeo,
which finds your friends' updates across the Web.
Your friends are already using Spokeo to follow you on Web Results.
Try Spokeo today to find what your friends are doing across 30 different social
networks!
Click
http://w
Hi All,
I wrote a Cucumber version in Perl 5.
It's very minimal, but maybe someone will find it interesting.
Check it out on http://github.com/kesor/p5-cucumber
-
evgeny
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforg
anyone can
help me out with this project (really small for now), then I would really
really appreciate it.
Enjoy
http://github.com/kesor/p5-cucumber
It is really minimal for now, so don't expect much.
Regards,
Evgeny
___
rspec-users mailing list
?
response.should have_tag("#add_comment") after "render :template"
doesn't work.
Thank you in advance and sorry for the long list.
Evgeny
PS. Are these questions covered in the book: "The RSpec Book:
Behaviour Driven Development with RSpec, Cucumber, and Friends&quo
rs a create.rjs
template when comment is successfully created in ajax request' FAILED
No RJS statement that replaces or inserts HTML content.
Thank you!
Evgeny
=controller
def create
@comment.save
respond_to do |format|
format.js
end
end
=create.rjs
co
Thanks a lot Pat for clear and detailed explanations.
My initial vision was that I don't change code and do all the
manipulations in spec files.
Now I understand that it is not really what I should be doing. I
should take into account both,
and adapt one to another to improve clarity and briefness
is done with
assigns for view specs, so that my spec doesn't depend on it at all.
Best,
Evgeny
PS. Sorry for bother
@comment = Space.comment, the test will fail.
before_filter :find_comment
def find_comment
@comment = Comment.find(:first, :conditions => ['id= ?
Thanks a lot!
Got an idea!
On Feb 25, 11:35 am, Pat Maddox wrote:
> On Wed, Feb 25, 2009 at 2:13 AM, Evgeny Bogdanov
>
>
>
> wrote:
> > I am wondering what is the best way to mock such expression:
> > "comment.initiator.gr
I am wondering what is the best way to mock such expression:
"comment.initiator.group.name"
What I do now is:
===
comment = mock_model(Comment)
initiator = mock_model(User)
group = mock_model(Group, :name => "Admin")
initiator.stub!(:group).and_return(group)
comment.stub!(
ssigns[:comment] = mock("comment") works only for views?
Thank you,
Evgeny
On Feb 23, 8:32 pm, David Chelimsky wrote:
> On Fri, Feb 20, 2009 at 10:17 AM, Evgeny Bogdanov
>
> wrote:
> > Hello,
>
> > I am trying to implement the following scenario, but I am stuck ...
the controller and variable @var is defined in
another place and controller just uses it.
my_var.stub!(:function).and_return(@var) doesn't seem to be working.
Is there is something like
my_var.stub!(:function).add_variable(@var).and_return(:true)
?
Thank you,
Evgeny
=controller_f
16 matches
Mail list logo