similar to: integration tests - 1.1

Displaying 20 results from an estimated 100 matches similar to: "integration tests - 1.1"

2006 Sep 03
1
Returning different values with stubs
Right now I''m working on adding tests to a method that looks like this: def get_via_redirect(path, args={}) get path, args follow_redirect! while redirect? status end So, I want to confirm that get is called and that status is returned but I also want to see that when the value of redirect? effects how many times follow_redirect is called. Is there
2007 Nov 28
2
follow_redirect!() doesn't exist?
Hi all I want to do some functional testing. I stumbled over the method follow_redirect!() somewhere, but evidently this doesn''t seem to exist in my Rails version (1.2.5 or so)?! Then I tried follow_redirect() (without the exclamation mark), and I get the following error: TypeError: can''t convert Symbol into String What am I doing wrong? Thanks for help :-) Josh -- Posted via
2007 Jul 25
3
autotest + integration testing (follow_redirect!) error
I''ve got an interesting (possibly) problem right now between autotest and rails integration tests. There are a few things to preface this with. Works fine: rake test rake test:integration Blows up: autotest Autotest is correctly determining rails and runs tests just fine. One part of the behavior is that if I save a change in just the integration test (even hitting cmd+s to trigger a
2011 Jan 11
1
Interpolate xts
Hello, I have a xts object, I would like to fill the NA with linear interpolated data. Can anyone please help. > str(zz) An ‘xts’ object from 2010-11-24 15:59:29 to 2010-11-24 16:00:00 containing: Data: num [1:23401, 1] 312 312 312 312 312 ... Indexed by objects of class: [POSIXct,POSIXt] TZ: xts Attributes: List of 2 $ src : chr "datafeed" $ updated: POSIXct[1:1],
2005 Dec 23
6
Agile book - test error
Hi all, I get an error when testing the "store_controller_test.rb" The troublesome line is in the test below: def test_add_to_cart get :add_to_cart, :id => @version_control_book.id <<< cart = session[:cart] assert_equal @version_control_book.price, cart.total_price assert_redirected_to :action => ''display_cart'' follow_redirect
2009 Feb 02
2
did_not_yield
Hello, I have some rudimentary code for loging into my app and database, it works ok (I think) but in Production, it does some strange things. I''ve reduce the problem to a more simplest approach, without rendering, simply creating a variable of what should do. Here is what I get in the log: Processing ScannsController#status (for 127.0.0.1 at 2009-02-02 14:24:25) [GET] Session ID:
2008 Jun 02
2
Cannot log in/authenticate within RSpec Story
I''ve been slamming my head against a wall for a while now, and would like some help. I believe this is session related. I have a story that looks like: -------------------------------------------------- Given that a post exists And I am logged in When I visit the post details page Then there should be a link to add a new comment
2006 Apr 03
0
follow_redirect! aborts rake during integration tests
I''m running integration tests on Rails 1.1/Ruby 1.8.4/Windows XP and have found that any call to follow_redirect! (directly or through [get|post]_via_redirect) causes rake to abort (see command line output below). Has anyone else seen this error, or know what might be the trouble? Thanks! Tom C:\dev\h2h>rake test:integration --trace (in C:/dev/h2h) ** Invoke test:integration
2008 Jan 16
1
session data and user stories
hello there, i have been trying my hand at this rbehave material, specifically in terms of integration testing a rails application, and i am curious about the most friendly way to deal with session data. currently, the only way i have found to simulate a session is to open a session and refer to everything afterward via the @session variable stored after open_session. it seems to be workable,
2006 May 16
3
UserEngine and hiding controllers
I''m using LoginEngine + UserEngine for web application. 1. I have some controllers under and admin subdirectory (Admin::PostController etc). The auto-fill permission in UserEngine does not work correctly with those controllers. Right at the moment this is not a problem, since I kind like having the Admin section separated and available only for god users. However, I could use
2001 Aug 30
0
Q: patch for logging rsa-fingerprint on login/logout?
Hello everybody! I'm currently looking for a patch to openssh which allows logging of the fingerprint on rsa2-based authentification. I've had a look at the FAQ, and a view at the source. As I couldn't find a patch for my wish, I'm telling what I thought. Suggestions welcome (a patch moreso :-) I've started to modify login_write() which seems the best point for this. BUT:
2006 Jul 17
5
Functional Tests misbehaving with Globalize
Howdy all Apologies to the folks subscribed to the globalize list for dual posting this message... I''ve got a project running globalize and rails 1.1.4, and I''ve only recently adopted a strong love for testing. Now my models are 100% tested (I must note that I do not make use of any translations in the database yet), and I''ve now started with functional tests before
2006 Jul 21
3
Help me run rails on apache on Linux Fedora
Hello all, I am new on the rails list, having signed up today, but I am in the midst of some sticky business getting rails to go on my linux system. I am running Fedora Core 4, with Ruby 1.8.4 and Apache 2.0.54. I have setup the chapter 4 tutorial from the "agile book" and everything works absolutely perfectly using Webrick. I got rails 1.1.3 from ruby gems, and since have done an
2008 May 08
0
New test helpers
Hey guys- A few methods useful for testing have been added to trunk: 1) facebook_post For use in controller unit tests and integration tests. Basically, it delegates to the standard "post" method for simulating post requests in a test, but constructs mock fb_sig params and passes them along to the requested action with the rest of the params that the test specifies. 2)
2006 Feb 27
0
Functional Tests when using the User Engine
Hi all, I''m trying to write a functional test for a controller. In my app I''m using the users engine, so of course the test needs to login. However, I can''t use follow_redirect since that gives an error. What is the proper way to do the login in the test? Thanks in advance, Nick -------------- next part -------------- An HTML attachment was scrubbed... URL:
2007 Mar 12
1
Can't follow redirects outside current controller - but it's the same controller
Running a functional test on FooController that does ''follow_redirect'', I get ''Can''t follow redirects outside current controller (from "foo" to "foo"). On further investigation, it turns out that :foo != ''foo'' around line 401 of actionpack/lib/ action_controller/test_process.rb. Changing the line: if redirected_controller
2007 Apr 29
0
integration test redirects to external URLs
In an integration test that I am writing I want to do something like def test_my_page get "/rails/someaction" assert_response :redirect follow_redirect! assert_url => ''http://www.somepageoutsidemyrailsapp'' end Is there any way to do something like ''assert_url'' and see if I was redirected to a page outside of the rails
2006 Jun 17
3
What is this failure trying to tell me?
Here is my unit test code. post :login, :user=>{ :login => "bob", :password => "test"} assert_response :redirect assert_session_has :user assert_redirected_to :action => ''welcome'' Here is the failure I''m getting when I run my tests. 2) Failure: test_login_required(UserControllerTest)
2006 May 04
6
second assert_tag failling in rails integration test
Hi all, I''m fairly new to rails and ruby, but I''ve come across an interesting glitch and I''m not sure whether I''ve just got something wrong with my assumptions or if it really is an error in the underlying framework... I''ve created a bare-bones set of tests to show you where the problem is. What follows are the steps I went through to reproduce the
2007 May 19
1
Is there any documents about CGIResponse?
I set response.body with some string, in controller''s index, but it seems did nothing.... Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this