Displaying 20 results from an estimated 100 matches similar to: "name_url in tests"
2006 May 08
0
testing named routes
Hello,
I''m trying to test routes named within a map.with_options statement.
I have in routes.rb:
map.with_options :controller => ''films'' do |f|
f.overviews ''films/:index'', :action => ''index'', :requirements => { :index => /index(artist|date|title)\.html/ }, :index => ''new''
etc...
end
and
2006 May 18
6
Routes and Testing Routes
I love the routes feature for RoR...until now. I''m trying to write tests
to make sure my urls are correctly mapping to the routes I expect them
to map to. This is driving me nuts because I simply can''t get any of my
tests to pass. I have thus concluded that routes must work differently
than I thought. If someone could possibly point me in the right
direction, I would really
2013 Nov 18
5
How to keep samba4 dc work fine when windows dc offline?
I'm testing a samba4 server join AD (had 1 win2003 dc) as dc. Version:
Samba4 DC: samba 4.1.1 with ubuntu (172.16.3.8)
Win2003 DC: Win2003 SP2 (172.16.3.3)
AD domain name: dotest.com
The samba server had joined to AD as DC. When win2003 dc online, it seems
works fine.
When I test win2003 dc online, simulate the win2003 DC was failue, found
the samba4 DC can't work fine along. The AD
2010 Feb 15
1
possible bug: using assert_recognizes with extras
Hi.
I am trying to use the extras hash parameter in assert_recognizes. I
am using.
assert_recognizes(expected_options, path, extras={}, message=nil)
I have something similar to the documentation:
assert_recognizes {:controller => ''items'', :action => ''list'', :id => ''1'', :view => ''print''},
2008 Jan 02
1
assert_recognizes with requirements => {:method => something}
I''m having trouble with my routing, and was wondering if anyone else
had seen something similar.
I''ve got these two routes:
map.login ''/login'', :controller => ''sessions'', :action =>
''new'', :requirements => { :method => :get }
map.connect ''/login'', :controller => ''sessions'',
2009 May 02
10
Problem verifying routing error
Hi,
When upgrading to rspec/rspec-rails 1.2.6 gem (from 1.1.12), I''m having
a new problem verifying routes that should not exist.
This is to support something like this in routes.rb:
map.resources :orders do |orders|
orders.resources :items, :except => [:index,:show]
end
I used to use lambda {}.should_raise( routing error ), but it stopped
detecting any raised error.
2008 Jul 08
0
How put a link for a attachament in Wine's Wiki
Hi, I am translating some parts of Wine's wiki to Spanish.
In page http://wiki.winehq.org/MakeTestFailures says:
--snip--
Download the dotests script and place it in the programs/winetest directory
--/snip--
dotest is a link to attachament, then in the same page (translated to Spanish) i need put these attachament linked.
I have put this code for these part:
English page
2018 Jun 14
3
[lldb-dev] Adding DWARF5 accelerator table support to llvm
> On Jun 14, 2018, at 7:01 AM, Pavel Labath via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> Thank you all. I am going to try to reply to all comments in a single email.
>
> Regarding the .apple_objc idea, I am afraid the situation is not as
> simple as just flipping a switch.
Jonas is currently working on adding the support for DWARF5-style Objective-C accelerator
2007 Jul 02
6
Testing route globbing and limitations of get()
Hi everyone,
I''m new to rails and also to rspec, but I tried to do my homework. To answer
my questions, I searched this list''s archives, the Rails API, and Google, to
no avail. Therefor, I''d be grateful if someone could point me in the right
directions:
1) There doesn''t seem to be a counterpart to assert_recognizes in rspec.
route_for() won''t work
2019 Jan 02
4
[lit] check-all hanging
Hi David, Chandler,
I see lldb tests hang often, and then I kill the dotest process.
I'd like to stop running check-all too, but I feel it's important when I
modify FileCheck. The flakiness that Chandler mentioned makes it
time-consuming to verify test results.
Joel
On Wed, Jan 2, 2019 at 4:41 PM Chandler Carruth via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> What
2006 May 18
2
Help with Routes
I love the routes feature for RoR...until now. I''m trying to write tests
to make sure my urls are correctly mapping to the routes I expect them
to map to. This is driving me nuts because I simply can''t get any of my
tests to pass. I have thus concluded that routes must work differently
than I thought. I will try to explain my understanding of how routes
work. Via this
2007 Apr 03
3
More weirdness with PHP bindings
Hi all,
There's been a odd bug reported to us by Daniel Menard while working on
the PHP bindings:
"I then tried to run the dotest target...All tests passed, except the
one about get_matching_terms (smoketest.php line 94).
I added this line before the exit:
for ($i=0; $i<strlen($terms); $i++) echo $c=ord($terms[$i]), ' ',
($c>31?$terms[$i]:''), "\n";
2018 Jun 13
2
[lldb-dev] Adding DWARF5 accelerator table support to llvm
> On Jun 13, 2018, at 11:18 AM, Jonas Devlieghere via lldb-dev <lldb-dev at lists.llvm.org> wrote:
>
> Hi Pavel,
>
>> On Jun 13, 2018, at 6:56 AM, Pavel Labath <labath at google.com <mailto:labath at google.com>> wrote:
>>
>> Hello again,
>>
>> It's been nearly six months since my first email, so it's a good time
>> to
2006 Jul 05
2
How to write get functional test when there is no action by that name
I have following line in route.rb
#event info for an event name
map.connect ''event/:name_url'',:controller => ''home'',:action =>
''event_info''
It causes a URL like http://localhost:3000/event/_jewels_exhibition_ to be
sent to the home controller with action as ''event_info''.
I am trying to test this action. My first
2008 Apr 19
4
Displaying external url's
I am a rails beginner and I am having trouble displaying external urls
on view.
This is what i have in DB for ex: www.rubyonrails.com, if i try to
construct the url on the page using link_to the url formed is -
http://localhost:3000/www.rubyonrails.com.
Can someone help me in fixing this issue.
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you
2006 May 17
0
Strang Behavior when testing Routes
I have the following route:
[code]
map.connect
'':platform_filter/:software/:version/:platform/:distribution_channel/:id'',
:controller => ''user/version'',
:platform_filter => /all/,
:platform => /windows|macintosh|unix|linux/,
:distribution_channel => /Download|download/,
:action => ''download'',
:id =>
2005 Dec 14
0
assert_generates and catch-all routes
I have a catch all route.
map.connect ''people/*args'', :controller => ''people'', :action =>
''default_action''
I can test this one way, with assert_recognizes.
expected_options = { :controller => ''people'', :action =>
''default_action'', :args => [''made_up''] }
assert_recognizes
2011 Apr 21
0
Routing assertions
Hi
Thanks for help me out
I have two routes :
match ''admin/categories'' => ''admin#categories'', :as =>
''admin_category''
match ''admin/categories/:sub_category'' => ''admin#categories''
In rspec
2019 Jan 02
3
[lit] check-all hanging
Hi,
>From time to time, I see check-all hang during running of lit tests.
The hang always happens at the > 90% completion stage and I'm pretty
sure all tests have been run and check-all is just waiting for
lit/python to exit. I see a single python processing running, taking
very little CPU time. An strace of that process shows this:
select(0, NULL, NULL, NULL, {0, 50000}) = 0
2006 Jan 21
2
Testing ActiveRecord associations
How do I write a test which proves something like "Post :has_many
Comments" and "Comment :belongs_to Post"? It doesn''t seem to be covered
in "A Guide to Testing the Rails" on manuals.rubyonrails.com.
Cheers, Robert.
--
Posted via http://www.ruby-forum.com/.