similar to: Testing RSpec views: the index action; is my methodology flawed?

Displaying 20 results from an estimated 100 matches similar to: "Testing RSpec views: the index action; is my methodology flawed?"

2010 May 21
0
Authlogic and Single table inheritance
Hi, I have some models such as: class User < ActiveRecord::Base acts_as_authentic end class Admin < User end class Superadmin < Admin end And some controllers such as: class UserSessionsController < ApplicationController def new @user_session = UserSession.new end def create @user_session =
2007 Aug 06
2
Proposal: Pure Regex Router
So this has been an idea ever since Rails came out. Why not use a pure regular expression router in similar fashion to gsub? I imagine it working something like this: Merb::Router.prepare do |r| r.add %r[^/(.*)/(.*)/(\d+)$], :controller => ''\1'', :action => ''\2'', :id => ''\3'' r.add %r[^/user-(\d+)$], :user_id =>
2006 Jan 03
7
best authorization?
Hello, I want to allow some users to manage other user accounts, but do not want them to manage the admin account. I have tried auth_generator, login_engine and user_engine I am having a hard time gettign this to work. Looking for advise and help. Thanks Frank -------------- next part -------------- An HTML attachment was scrubbed... URL:
2011 Jun 04
2
need recipe for samba to do user authentication against a centos 5.5 openldap server (NO IDMAPS! NO PDC!)
Hi all, Please help Ive been wasting days at this... I am not trying to create a PDC, I am not joining an active directory, I am not needing samba schema in my openldap (or do I?), I am not trying to use winbind and idmaps for translations from SID to UID/GID, I just want my samba server which shares linux home directories to authenticate user+password against my existing linux based openldap
2003 Oct 01
1
Secondary groups
I have backups of user home directories that I've shared out via samba so that my non-linux level 1 guy can restore files using the drag-n-drop. Problem is, all directories are owned by their respective user and are set 700. In order for the admin users to access these directories, I've set admin user=@SuperAdmins for the share in smb.conf. The problem is, al the admin users have
2012 Feb 14
3
domain quota in sql
Hi, I have a problem with setting up quota usage tracking for domains. Problem is, that domain quota is always based on only one user in domain, the last one on whom behalf any operation was performed. To recreate this situation, one has only to perform: doveadm quota recalc -u USER on a user, and the domain quota takes the value of this user quota. Have anyone a clue what could cause this
2011 Jun 13
0
Devise Authorization Error
Hello everyone, I am new to rails and I am having some trouble getting the Devise authorization plugin working. I can get the login page to display, but when I enter the credentials for a known user (I seeded an account to the database) it just says "Invalid email or password," even though I''m 100% sure I entered the right information, and redirects me to the login form.
2011 Jun 29
6
RSpec with Rails 3.1rc4: spec test won't recognize <%= %> (should be simple)
In my user_sessions_controller: class UserSessionsController < ApplicationController before_filter :require_no_user, :only => [:create, :new] before_filter :require_user, :only => :destroy def new @user_session = UserSession.new @message = "Hello." end def create @user_session = UserSession.new(params[:user_session]) if @user_session.save
2009 Apr 28
3
[cucumber] Use of Scenario Outline for validation stuff ?
Hi there ! I was wondering if the way I test the validation of my forms is right or not. So here''s a little example : Imagine you have a form with some validations designed to create some object. You want to test it using Scenario Outline and Examples. So you fill in the fields using <value>, and press the create button. Then you "should see" (using webrat) the
2011 Sep 27
4
What best decision to make for flatfiles or SQL when I use Dovecot2 + Postfix together?
Hello, I'm moving my mail server from Exchange to an opensource one. After a bunch of reading, I decided on building a Dovecot2 + Postfix server in a VirtualUsers-only + Multiple-domains configuration. Since my messages will be stored by Dovecot, and the documentation is really good, I figured that it's smartest to configure Dovecot, then make Postfix 'fit' to it, sharing the
2009 Jul 25
3
Rails Authorization and Security question
Working through the Users and Authentication of Learning Rails book (great book, code needs to be proof-read in a few cases, though), I came across this: There''s still one leftover that may be worth addressing, depending on your security needs. The authorization? method has secured the data, and the view no longer shows the user options they can''t really use, but if a
2011 Jan 21
0
HHT-methodology
Hello R-experts, I wonder whether any of the R-packages cover the Hilbert-Huang Transform methodology (HHT)? Regards, Torbjorn -- Torbj?rn Lorentzen | torbjorn.lorentzen at bjerknes.uib.no |torbjorn.lorentzen at uni.no | http://www.bjerknes.uib.no/ Phone: +47 55 58 25 05 | Cellphone: +47 906 972 36 | Bjerknes Centre for Climate Research | Geophysical Institute | University of Bergen |
2002 Sep 27
0
Response surface methodology
Dear all, I am attempting to use RSM in order to optimise the analysis of volatile compounds. After changing two variables and performing a series of measurements, I get the following: X1 X2 resp 1 -0.8 -1.0 1101039 2 -0.8 0.0 809947 3 -0.8 1.0 814664 4 0.0 -1.4 759484 5 0.0 0.0 665916 6 0.0 0.0 654054 7 0.0 0.0 641134 8 0.0 0.0 673143 9 0.0 0.0
2005 Oct 04
1
TRAMO-SEATS methodology
Dear Colleagues would someone know a suitable online-source for information regarding the TRAMO SEATS method for time series ? (an alternative to X12 ARIMA and earlier ARIMAs used by the US census bureau) Cheers -- ----------------------------- Soren Wilkening Principal Consultant phone: +49-30-96080121 wilkening at censix.com CENSIX Consulting Statistics, Surveys, Censuses
2010 Oct 06
0
methodology question : is anova appropriate for these data?
Representative small sample of data: algorithmID <- factor(c(rep('alg1',4),rep('alg2',4),rep('alg3',4))) threshold <- factor(rep(c(.45,.50,.55,.60),times=3)) score <- c(30,32,31,30,10,12,13,14,22,21,20,24) d <- data.frame(algorithmID,threshold,score) AlgorithmID is the name of each algorithm; threshold is the value of a parameter used by the algorithm that
2006 Mar 08
1
Mixed GLM methodology and execution question
Hi all, I have a question regarding how to properly analyze a data set and then how to perform the analysis in R. First, I have data that I would like to analyze using a mixed GLM (I think this is the most appropriate method, but I am unsure). In a mixed model (y = X*beta+Z*gamma+epsilon), I would like to structure the variance matrices of gamma, G, and the error, R, to take advantage of all my
2010 Jul 08
3
my web app seed data and cucumber
I''m writing a web app which is used a SaS. Each customer has their own db and app directory. I have a rake task which creates all necessary minimum data to run their website: default rights and roles, a superadmin user, a "us_states" table already populated, some local depots and terminals (it''s a logistics app). I don''t have any cucumber scenarios for it and
2006 Apr 08
2
Is caching in rails broken or at least very flawed?
I was going to add caching to my applications, but everything that I''ve found through google is about all of the problems everyone has had with caching. Is is really as bad as I''ve read? -- Posted via http://www.ruby-forum.com/.
2004 Jun 19
1
[Bug 1467] Hash table generation seems to be flawed
https://bugzilla.samba.org/show_bug.cgi?id=1467 ------- Additional Comments From ripper@internode.on.net 2004-06-19 02:18 ------- The way the code seems to work is as follows: A sorted list of hashes and their block numbers are generated (targets). They're sorted so that identical hashes are numerically next to each other. A reverse lookup table is then generated, that (i presume) is
2006 Nov 23
0
W3C Range specification conceptually flawed?
hi all! check this one: <html> <head> <title>Range test</title> </head> <body> <div id="myText">FooBarBaz</div> <script type="text/javascript"> myText = document.getElementById(''myText'').firstChild; var range1 = document.createRange(); range1.setStart(myText, 3); range1.setEnd(myText, 6); var