Displaying 20 results from an estimated 100 matches similar to: "DetachedEval Issues"
2006 Jun 06
14
How can I set the session in a functional test?
Hey :)
I need to simulate a login in my functional test, otherwise I can''t GET nor
POST to the action.
I need to set the session key "logged_in_user_id".
I tried this inside the setup() method:
session[''logged_in_user_id''] = 1
But that throws: TypeError: can''t convert String into Integer
Any ideas?
Thanks,
Rob
-------------- next part
2006 Nov 08
1
controller.session not same as session?
> context "A user logging out" do
> fixtures :users
> controller_name :account
>
> setup do
> login_as :quentin
> users(:quentin).remember_me
> request.cookies["auth_token"] = cookie_for(:quentin)
> end
>
> def logout
> get :logout
> end
>
> specify "should unset :user in session" do
2006 Dec 31
2
what''s with the response.should_be_xxxx stacktrace?
If I do
get :index
response.should_be_success
I get about 20k of marshalled dumpage that starts like
#<ActionController::TestResponse:0x390443c @body=\"<html><body>You
are being <a href=\"http://test.host/carts/1\">redirected</a>.</body></html>\",
@assigns=[], @redirected_to={:action=>\"show\", :id=>1},
2006 Nov 10
3
Specifying views
I''m trying to spec my views with 0.7.1 on edge rails per the
instructions on the rspec site [1] and David''s blog [2], but I''m not
having much luck. Here''s my spec in specs/views/accounts/
new_view_spec.rb:
require File.dirname(__FILE__) + ''/../../spec_helper''
context "The new account form" do
specify "should have an
2006 Mar 15
2
Session (stored in db) not working in testing mode
Hi,
I just switched from storing my sessions on disk to storing them in
MySQL. Changing environment.rb ''config.action_controller.session_store =
:active_record_store''. But now all my tests fail. I get the following
error:
1) Failure:
test_authorized_new(AdControllerTest)
[c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/depr
2005 May 18
10
Salted Login Generator issues
Hello all,
I''ve just installed and begun to integrate the salted login generator.
So far I''m very impressed, though I''ve hit a few snags along the way.
Unfortunately, I''ve met the first one that I haven''t been able to
resolve on my own.
When I hit the login action, I get errors in my log files. The specific
error with trace is included below.
2002 Sep 08
0
Network disks not unmounting
When I log in into the domain a logon script is started that assigns some network drives. But when I log and on again the script gives an error in the form of:
The local device name is already in use
Is this a bug or is it just windows? Can anybody tell me how to solve this?
-- smb.conf --
[global]
netbios name = BARAD-DUR
workgroup = MIDDLE-EARTH
server string =
2006 Jun 16
0
rake spec controller test output hideus.
Is there any way to change the output of rake spec fails?
The errors are just totally over the top ugly and not helpful. First
of all the ruby -Ilib line always comes before each test and I find it
distracting. But if an error occurs on something that is not nil it
just gives me the entire contents of that object and that is no small
matter when the object is a HTTP request response.
Here is
2009 Feb 19
1
Switching to ActiveRecord Session Store
I''m having a problem switching from cookie sessions (the default) to
active record sessions.
I''ve created the sessions table via the rake task, uncommented the
line
config.action_controller.session_store = :active_record_store
in my environment.rb file, cleared out my browsers cookies, restarted
the server (natch), but still the it''s using cookie_store instead of
2000 Mar 07
0
Pre 3.0.0 PANIC
I've been getting a lot of these recently in my samba-log ever since I
downloaded the latest cvs SAMBA_2_0 branch code.
Mar 6 18:13:06 gate smbd[11126]: cos5 (192.168.7.132) connect to
service rsession as user rsession (uid=707, gid=100) (pid 11126)
Mar 6 18:13:15 gate smbd[11126]: [2000/03/06 18:13:15, 0]
lib/fault.c:fault_report(40)
Mar 6 18:13:15 gate smbd[11126]:
2018 Sep 14
3
Bug when calling system/system2 (and request for Bugzilla account)
Hi all,
I found some strange behaviour, which I think is a bug. Could someone make an account for me on Bugzilla or pass on my report?
The problem:
When pressing Ctrl-C when a file is sourced in R, run from Terminal (macOS), sometimes the entire session is ended right away, while I just want to stop the script. This is the case when I press Ctrl-C while some functions are running that don?t
2012 Nov 29
1
rstudio doesn't work in LMDE without internet conexion.
Hello everybody.
I'm using Rstudio in LMDE (64 bits) with xfce desktop. When I'm
connecting , I don't have any problem to start Rstudio , but when I am
not connecting Rstudio don't start.
Any idea?
In rsession-user.log I get
29 Nov 2012 23:07:50 [rsession-jose] ERROR asio.netdb error 1 (Host not
found (authoritative)); OCCURRED AT: core::Error
2018 Sep 14
2
Bug when calling system/system2 (and request for Bugzilla account)
I hope it's not too specific in my setup...
I've tried with system2 added on the first line, so:
Example.R:
system2('ls', timeout=5)
cat('Start non-interruptable functions\n')
sample_a <- sample(1:1e7)
sample_b <- sample(1:2e7)
matching <- match(sample_a, sample_b)
cat('Finished\n')
Sys.sleep(10)
And in terminal/bash:
R --vanilla
2016 Mar 01
3
Uso excesivo de CPU de RStudio
Hola, ¿qué tal?
No sé si alguien ha encontrado (¿y solucionado?) el mismo problema que yo.
El proceso rstudio (no me refiero a la rsession que levanta), incluso sin
hacer nada con RStudio, sin que corra código, sin gráficos abiertos, aunque
quede en segundo plano, con el "environment" vacío, consume casi al 100%
una de mis cuatro CPUs.
Sospecho que podrían ser los diagnósticos de
2016 Mar 02
2
Uso excesivo de CPU de RStudio
Hola Carlos,
En mi portátil, con archlinux y la misma versión de RStudio no tengo ese
problema, pero recientemente en el trabajo he puesto ubuntu 14.04 (con i3
como windows mánager) y me pasa lo mismo, un pico de uso de CPU al iniciar
RStudio, pero luego va todo bien. Yo lo achaco a Ubuntu (quizás el kernel,
ya que la versión 14.04 de ubuntu sigue con el 3.16 en vez del 4+ que tengo
en archlinux)
2018 Sep 14
0
Bug when calling system/system2 (and request for Bugzilla account)
I can't reproduce this. Can you be more precise: exactly where are you
putting the system2 call and exactly where are you sending the
interrupt signal with ^C?
Best,
luke
On Fri, 14 Sep 2018, Emil Bode wrote:
> Hi all,
>
> I found some strange behaviour, which I think is a bug. Could someone make an account for me on Bugzilla or pass on my report?
>
> The problem:
> When
2012 Mar 27
5
Rstudio, ha vuelto a pasar
Hola a todos.
Pues eso que sigo teniendo problemas con Rstudio en linux mint debian.
Pero pasa algo curioso. Si estoy conectado a la red,sea la que sea, si
funciona, pero sin embargo si no tengo acceso no puede iniciar rsession..
¿Alguna idea? sobre todo los que sois linuxeros...
2018 Sep 14
0
Bug when calling system/system2 (and request for Bugzilla account)
FWIW I can reproduce on macOS with R 3.5.1. A smaller example:
system2("ls", timeout = 5); x <- sample(1:1E8)
If I try to interrupt R while that sample call is running, R itself is closed.
Best,
Kevin
On Fri, Sep 14, 2018 at 10:53 AM Emil Bode <emil.bode at dans.knaw.nl> wrote:
>
> I hope it's not too specific in my setup...
> I've tried with system2
2011 Dec 17
0
Rattle install issues on windows 7 and R2.14.0
Hi all,
Installed rattle and the required GTK+, but ran into problems. did some research on the net which recomened removing GTK+ and insalling it from within R from the package RGTK2 which I did but that didn't resolve the problem.
I get two different errors one is noticed as soon as I try to run rattle as bellow
> rattle() ##after this command I get the following msg.
2012 Apr 04
3
Rgui maintains open file handles after Sweave error
Hello Folks,
When I run the document below through sweave, rgui.exe/rsession.exe
leaves a file handle open to the sweave-001.pdf graphic (as verified by
process explorer). Pdflatex.exe then crashes (with a Permission Denied
error) because the graphic file is locked.
This only seems to happen when there is an error in the sweave document.
When there are no errors, no file handles are left open.