Displaying 6 results from an estimated 6 matches for "dmonopoly10".
2011 Jun 16
2
Authlogic: Trying to login in my Cucumber test - Authlogic::Session::Activation::NotActivatedError
In a Cucumber step definition, I''m trying to login, but I keep getting
this error:
You must activate the Authlogic::Session::Base.controller with a
controller object before creating objects
(Authlogic::Session::Activation::NotActivatedError)
My code:
Given /^I am the logged in (.+) "(.+)"$/ do |role, login|
user = User.create!(
:login => login,
:password =>
2010 Sep 01
4
deprecation warning in Rails 3 about Base.named_scope
I recently upgraded to Rails 3, and this error has come up
ubiquitously:
DEPRECATION WARNING: Base.named_scope has been deprecated, please use
Base.scope instead.
Any ideas on how to get rid of it? Or should I just wait for
something?
There''s actually no place in my application where the code
"Base.named_scope" exists, so I assume the problem is inherent in gems
that
2010 Dec 15
5
Having trouble testing :( "superclass mismatch" and can't load "test_helper"
I''m having trouble testing my Rails 3 application. Unit testing
doesn''t work. If I try ruby article_test.rb directly, I get a "no
such file to load" error, and if I try rake test:units or ruby unit/
article_test.rb I get this odd "superclass mismatch for class
ArticlesController" error!
I''m hoping I can get this settled...
My test files were
2010 Dec 23
6
Difference between rake test:units and individually running ruby -I test test/unit/something_test.rb ?
Here''s my issue: running ruby -I test test/unit/something_test.rb for
each of my unit tests works perfectly.
However, running rake test:units brings errors in all of them - some
object becomes nil for some reason.
Why might this be happening?
Specifics: the object that is successfully not nil when I run the unit
tests one-by-one but becomes nil when I do rake test:units is defined
like
2010 Dec 22
8
Shoulda issue: no more "should have_instance_methods" ?
I''m using Shoulda.
After copying the code here....
.... http://joshuaclayton.github.com/code/2009/07/14/should-act-as-list.html....
into my test_helper file so I can test acts_as_list, I came across
issues. For one I realized I had to get rid of the _ between the
"should" and "have" in past cases, but here, I get this error when I
run my unit test:
2010 Nov 25
1
Can't run tests...illegal switch in RUBYOPT: -F (RuntimeError)
Does anyone have any insight into why this is happening?
C:\Users\Family\workspace\myapp>rake test
(in C:/Users/Family/workspace/myapp)
C:/Program Files/Ruby187/bin/ruby.exe: illegal switch in RUBYOPT: -F
(RuntimeError)
C:/Program Files/Ruby187/bin/ruby.exe: illegal switch in RUBYOPT: -F
(RuntimeError)
C:/Program Files/Ruby187/bin/ruby.exe: illegal switch in RUBYOPT: -F
(RuntimeError)
Errors