Displaying 20 results from an estimated 5000 matches similar to: "Unwanted page displays in tests but not in development"
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 Jun 19
0
Cumber: Sending unwanted form parameters
Hey,
I have a 2 model form. Vehicle which accepts_nested_attributes_for
Images.
The form has a single File input field for an image. The form does not
require a file to process (Works in Dev fine).
In cucumber I fill out some fields then submit. I''m getting back
Validation errors from the Image model. "Data file name must be set."
But I''m not submitting an image so
2009 Apr 30
1
Partitioning Specs
On Thu, Apr 30, 2009 at 9:33 AM, Nicholas Van Weerdenburg
<vanweerd at gmail.com> wrote:
> I saw that a couple of days ago- very nice. Will that be added to RSpec?
Sooner or later, yes, but it will be managed through the hash passed
to the declarations:
describe "something", :tags => [:a,:b] do
it "does something", :tags > [:c] do
etc
You can already access
2012 Oct 10
4
How do we get the End of Line date for the gems which we are using Ruby on Rails?
Hi All,
I want to know the EOL date for the below gems for ROR. Can anyone help me
how to find the EOL dates
- authlogic
- will paginate
- oauth-plugin 0.3.14
- statistics 0.1.1
- YUI
- cucumber 0.6.4
- cucumber-rails 0.3.0
- rspec 1.3.0
- rspec-rails 1.3.2
- webrat 0.7.0
- factory-girl 1.2.4
- database_cleaner 0.5.0
- SSL requirement
- calender_select
2013 Jun 29
0
rake db:create giving undefined method `' for nil:NilClass
My ruby version is 1.8.7
I have installed mysql-essential-5.0.90-win32
and using Fedena 2.3.5
List of all gems installed:*
columnize (0.3.6)
declarative_authorization (0.5.1)
fattr (2.2.1)
ffi (1.9.0)
gem_plugin (0.2.3)
highline (1.6.19)
i18n (0.4.2)
metaclass (0.0.1)
mime-types (1.23)
mocha (0.14.0)
mongrel (1.1.5)
mysql (2.8.1)
net-ping (1.6.0)
prawn (0.6.3)
prawn-core (0.6.3)
prawn-format
2010 Dec 08
1
Help on install act_as_ferret on windows XP
Hi There!
Im trying to install act_as ferret on win xp, with this
environment:
winXP
ruby : 1.8.7
rails: 2.3.8
gem list:
abstract (1.0.0)
actionmailer (3.0.1, 2.3.8, 1.3.3)
actionpack (3.0.1, 2.3.8, 2.3.2, 1.13.6, 1.13.3)
actionwebservice (1.2.6, 1.2.3)
activemodel (3.0.1)
activerecord (3.0.1, 2.3.8, 2.3.2, 1.15.6, 1.15.3)
activeresource (3.0.1, 2.3.8)
activesupport (3.0.1, 2.3.8, 2.3.2, 1.4.4,
2010 Dec 24
0
keep getting "undefined method `map' for nil:NilClass (NoMethodError) " in new server
hi guys,
I have a new development server (ubuntu 10).
I have done the following (the versions match my existing development
machine which works fine):
1. installed ruby 1.9.1p378
2. installed ruby gems 1.3.7
3. installed rails 2.3.8 (used "gem install rails -v 2.3.8")
4. manually installed my other gems including sphinx and thinking
sphinx with "gem install ..."
5. ran
2009 Jan 26
4
Mocking/Stubbing ActiveRecord.config.default_timezone
In tracking down a bug in AuthLogic I realized that I had made the same
error in one of my libraries. Knowing what the error was made creating
a test to expose it (using cucumber) rather trivial. However, it has
occurred to me that this sort of issue is far more subtle than I first
appreciated. So, I am looking for some opinions on how to test for this
sort of thing in a more general sense.
At
2010 Nov 15
0
Problem testing Authlogic UserSession
I''ve posted this to the Authlogic group but things seem a little quiet, so
perhaps someone here can help:
''m testing Authlogic 2.1.6, running under Rails 3.0.1., using rspec
2.1.0
I have the following:
user.rb
class User < ActiveRecord::Base
acts_as_authentic do |config|
config.login_field :email
config.ignore_blank_passwords false
2008 Dec 16
20
step definitons to check login
I am working with the authlogic gem and trying to create a simple login
test from cucumber features. The feature statement is:
Given the user is not logged in
The step definition for this is confounding me. In the
application_controller the authlogic tutorial recommends the following:
private
def require_user
unless current_user
store_location
flash[:notice] =
2010 Mar 05
0
Strange error on the first request - trying to setup Rails 2.3.5 with Bundler
I''m trying to use Bundler for existing Rails 2.3.5 app and got a very
strange problem.
The problem is that on the very first request only the contents of the
action view file are rendered - i.e. when loading the home page
(controller: home, action: index) I get only contents of the app/views/
home/index.html.haml file as the response with no layout at all. On
the second and on subsequent
2009 Nov 17
8
rspec-rails gem double quoting (My)SQL?
Hi all,
This seems like a plugin conflict (I haven''t yet had success replicating
this in a new project), but short version is: when I have "rspec-rails"
in my environment.rb plugin config, table names are double quoted in
mysql queries generated by my standard finders.
rspec-rails commented out:
SELECT * FROM `users` WHERE (`users`.`id` = ''159564615'')
2010 Dec 02
7
Rails 3 + Authlogic not working all of a sudden
Hey People,
I''ve been working on Rails 3.0.0 and Authlogic for quite a while now but
all of a sudden I can''t login into my application anymore.
After some research I found out that no sessions are stored into the db
anymore so I started the console and saw this:
ruby-1.9.2-p0 > u = UserSession.new({:username => ''Test'', :password =>
2009 Jul 20
9
rake error
When I run rake test:units I get this error:
292 tests, 350 assertions, 2 failures, 13 errors
rake aborted!
Command failed with status (1): [/usr/local/bin/ruby -I"lib:test" "/
usr/loc...]
This error just showed up yesterday --- I have no idea how I caused
it. Here is my gem list in case that helps:
actionmailer (2.3.2, 2.2.2)
actionpack (2.3.2, 2.2.2)
activerecord (2.3.2, 2.2.2)
2011 Feb 21
1
authlogic problem
I can''t get authlogic to work.
(https://github.com/binarylogic/authlogic)
i''ve installed it,
i''ve put the following in environment.rb:
config.gem "authlogic"
''gem list'' gives:
*** LOCAL GEMS ***
abstract (1.0.0)
actionmailer (3.0.3, 2.0.2)
actionpack (3.0.3, 2.0.2)
activemodel (3.0.3)
activerecord (3.0.3, 2.0.2)
activeresource (3.0.3,
2009 Jun 13
5
undefined method `valid_password?'
I''m trying to set up the authlogic gem for rails, just after logging my
user I get this weird error:
NoMethodError in Usuari sessionsController#create
undefined method `valid_password?'' for #<Usuari:0xb69b9a54>
RAILS_ROOT: /home/cocozz/dev/enruscats
Application Trace | Framework Trace | Full Trace
2008 Dec 03
3
Intermittent Cucumber exception
Hi
Anyone recognise this exception, and know what causes it to happen
occasionally?
Thanks
Ashley
Scenario: new story appears on
feed # features/descriptions/
story_notification.feature:12
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/cucumber/
broadcaster.rb:15:in `write'': Bad file descriptor (Errno::EBADF)
from
2012 Oct 16
5
`method_missing_without_paginate': undefined method `class_attribute' for ActiveRecord::Base:Class
hi
i am using radiant 0.8.2 , rails 2.3.4, ruby 1.8.7 and rubygems 1.4.2. and
i can''t able to run my existing application.
error occurred :
run command for server "script/server -e production -p 3001"
error:
=> Booting WEBrick
=> Rails 2.3.4 application starting on http://0.0.0.0:3001
config.gem: Unpacked gem rack-rewrite-1.2.1 in vendor/gems has no
specification
2010 Feb 26
0
ruby script/cucumber -tags producing a gem error
When I do "ruby script/cucumber" the tests run no issues. When I do
the same thing but -tags tag_name I get a gem version error:
Where is it coming from and why??
Using the default profile...
RubyGem version error: rack(1.0.1 not = 1.1.0)
(Gem::LoadError)
F:/BACKUP/Backup/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:827:in
`report_activate_error''
2009 May 06
0
Cucumber, Webrat, RSpec and Mechanize for Non-Ruby Apps
The folks here have given me the task of figuring out if cucumber can
be used successfully to test some of our apps.
I have the latest versions of rails, mechanize, cucumber webrat and
rspec installed.
#/cuketest/features/google.feature
Feature: New PC
In order to get a sweet new PC
As a apple nerd
I want to find apple.com
Scenario: Get a sweet new computer
Given I visit