Displaying 20 results from an estimated 900 matches similar to: "get() method in custom expectation matcher?"
2007 Jul 26
6
response.should_not redirect_to
Hey,
May be it is just too deep night over here and I''m missing something
though I got this failure on {{{response.should_not redirect_to}}}:
''QueuesController should allow authenticated user to access ''show''''
FAILED
Matcher does not support should_not.
See Spec::Matchers for more information
about matchers.
Also I''ve found this in
2018 Nov 05
0
[PATCH 2/2] p2v: add a Shutdown action (RHBZ#1642044)
Add a "Shutdown" action to the Shutdown button in the conversion dialog,
before the Reboot action: this way it is possible to shutdown the
physical server directly from the GUI after the conversion.
---
p2v/gui.c | 24 +++++++++++++++++++++++-
1 file changed, 23 insertions(+), 1 deletion(-)
diff --git a/p2v/gui.c b/p2v/gui.c
index 10fb2939a..7aea4afd5 100644
--- a/p2v/gui.c
+++
2018 Nov 06
0
[PATCH v2 2/2] p2v: add a Shutdown action (RHBZ#1642044)
Add a "Shutdown" action to the Shutdown button in the conversion dialog,
before the Reboot action: this way it is possible to shutdown the
physical server directly from the GUI after the conversion.
---
p2v/gui.c | 24 +++++++++++++++++++++++-
1 file changed, 23 insertions(+), 1 deletion(-)
diff --git a/p2v/gui.c b/p2v/gui.c
index 10fb2939a..e78f1186c 100644
--- a/p2v/gui.c
+++
2006 Jan 31
1
Updating :has_many - :through related items
Hi,
I''ve got my little app working pretty well. I''m using pretty much the
model and table layout from my previous thread, as suggested by Bill
Katz:
<http://www.ruby-forum.com/topic/52506#26260>
I have the Create page working and a delete Match page working, which
along with the appropriate record in the Matches table, removes the
linked items in the competitions table.
2006 Apr 27
3
Routing problem
Hi,
I am having a routing problem and can''t figure out why its happing. I
have added the following line in my routing.rb file.
map.connect ''name/:id'', :controller => ''controller_name'', :action =>
''action_name''
When I use http://domain.com/controller_name/action_name/id then it
works fine on the local machine using webrick
2006 Jan 02
2
Dynamic form tags
Hi all,
I''m happily using "HowToReuseEditViewsForNewViews" found at:
http://wiki.rubyonrails.com/rails/pages/HowToReuseEditViewsForNewViews
There''s this comment there saying you only need the tag "<%= auto_form %>"
when using the code below. Can somebody tell me if that will work when
extending it with model_name (some how)?
I have several new_*
2005 May 01
5
Example using Builder::XmlMarkup and .rxml files?
Greetings,
I''m a newby to both "R"s in RoR. I would like to use Builder::XmlMarkup
to generate my pages. If there is a working downloadable example
somewhere, that would probably be enough. Otherwise, here''s what
I want to do:
With the following controller:
class AccountsController < ApplicationController
layout ''accounts''
model :account
2006 May 25
1
Built-in var. action_name for controllers?
All,
In the Recipes for Rails Authentication recipe, there is a variable
named action_name that''s used to represent the current action.
Where does this come from?
Is there a similar variable for the current controller?
Thanks,
Wes
--
Posted via http://www.ruby-forum.com/.
2006 Apr 07
0
How to combine rjs with ActiveView::Helper?
Suppose in controller:
class ArticlesController < ApplicationController
def search
...
render :update do|page|
page.replace_html ''panel_tab_searchresults'',:partial => ''article'',
:object =>@articles
end
end
And i want to add ajax styled Paginator to the view,i have got the
method and i can work well directly used in view:
2006 Mar 05
2
How to clean up this code?
Hi!
I''ve got 2 tables: products and images. Product has_many images, image
belongs_to product. In images table i store product_id and name of the
image (not the image itself).
I''ve created a single form, where user can add any number of images for
a
product he/she is creating (new fields are created using javascript).
The images that are uploaded are saved to public/images
2006 Jun 27
5
Can''t call public application.rb method from ERb template
All,
I have a left navigation partial that I want to dynamically generate CSS
classes for based on the current controller action.
In my ERb template, I have
<DIV class="<%= get_menu_display_style(''login_form'') %>">
In application.rb, I have the method get_menu_display_style defined as:
public
def get_menu_display_style(action_requested)
2007 Oct 25
0
Fwd: [ mocha-Feature Requests-15021 ] without or not params matcher
---------- Forwarded message ----------
From: noreply at rubyforge.org <noreply at rubyforge.org>
Date: 25 Oct 2007 14:01
Subject: [ mocha-Feature Requests-15021 ] without or not params matcher
To: noreply at rubyforge.org
Feature Requests item #15021, was opened at 2007-10-24 15:33
You can respond by visiting:
2011 Mar 22
1
GSOC 2011 : Weighting Schemes and Matcher Optimisations
Hello,
My name is Santiago Pina and I am currently studying two BSc(Hon)
simultaneously ; one in Computer Science and the other in Mathematics as
part of a pilot project at Universidad de Murcia. I am very excited to
contribute in open source community through the platform of Google Summer of
Code 2011. I was interested in the Weighting Schemes project and in the
Matcher Optimisations project,
2007 Nov 26
0
custom matcher tutorial
I wrote some quick notes up on a custom matcher I wrote around a
pattern that I am using constantly.
http://smartic.us/2007/11/26/rspec-matcher-for-active-record-associations
You could use it as a custom matcher tutorial for the uninitiated or
as a possible solution for validations specs for the more advanced.
Or you could use it to school me, and explain why my code sucks :)
bryanl
2008 Jan 24
1
Constant definition matcher
Hello all,
I need to specify that a class should define a constant.
I couldn''t find something such as "should define_const(''MY_CONST'')" in
the RSpec documentation, even though there are similar matchers such
as "should respond_to".
I know I can write the matcher myself (that wouldn''t be so difficult)
but is there a reason ?
Thanks!
2005 Oct 09
1
Preparing the 2.0.3-pre2 release (regex matcher)
On 10/1/05, Arnaud Quette <aquette.dev@gmail.com> wrote:
> I've decided, as an exception (the second with the ones for 2.0.2,
> but hey, nut has a lot of late to resorb) to merge the USB
> improvements from the CVS Development branch.
I took a look at backporting tripplite_usb to Testing. I don't see the
regex matcher, though. Do we want to merge that, too? Or should I
2016 Nov 26
2
Looking for help with an ast matcher
Hi,
Hope this is the right channel for this question. I am trying to make an
ast matcher for clang-tidy to find str1.compare(str2), where both str1 and
str2 are std::string. I have this so far: http://i.imgur.com/sUma9WC.png .
But I am having a hard time finding a way to bind an id to the str1 part of
the expression.
Can anyone help me out with an idea?
Best regards,
Mads Ravn
--------------
2020 Feb 19
2
i1 true ^= -1 in DAG matcher?
Hello,
It looks like that in the DAG matcher, the DAG has a xor with '-1' for
checking a true value vector
for instance,
%cmp4.i = icmp ne <8 x i32> %6, %5
%7 = xor <8 x i1> %cmp4.i, <i1 true, i1 true, i1 true, i1 true, i1 true, i1
true, i1 true, i1 true>
[use of %7]
results in vector of '-1' in the DAG. This also seems the reason why
LLVM's vnot PatFrag
2007 May 19
2
have_text matcher does not support should_not.
Hello Guys,
Doing conversion of some test for some controllers, still with integrated views.
Anyway, I have this:
it "should not see Join This Group button on profile page as member" do
get "show", :id => @group.id
response.should be_success
response.should_not have_text(/Join This Group/)
end
But running with spec (0.9.4), drop me the folling error:
2007 Apr 25
0
Redcloth bug - Stack overflow in regexp matcher
Hi,
I''ve been using the rassmalog static blogging engine and have
encountered a stack overflow inside the redcloth regexp matcher. I
don''t seem to suffer this error on my Ubuntu (Feisty Fawn) box (with
Ruby 1.8.4??), but I do get it on my Gentoo system. Running the
following line will generate it (I''ve attached the YAML/redcloth file
to this message).
$ ruby -ryaml