Displaying 20 results from an estimated 1000 matches similar to: "Mocking Authentication"
2008 Mar 05
14
[Stories] Login and subdomain
I''ve just begin using rspec stories, and i m encountering some
problems. In my application i have different subdomains in which
specific users can log in, for example an admin will go to
admin.myapp.com/authenticate/login, and an user belonging to a
specific company will log in company.myapp.com/authenticate/login, and
of course both have a different login process.
To perform some
2006 Mar 21
5
RoR and Growing Pains
I have persuaded my company to move towards an RoR shop... from a PHP 5
(with in-house-built framework)... so the jump is not terribly bad. I''m
REALLY excited actually!
My problem: I am overwhelmed with all the setup Loops I have to jump
through to get RoR setup. I tried it on my current Apache 1.34 and
decided it''d be easier to make the Lighty (1.4.11) jump. So I did. I get
2006 Feb 16
11
Multiple Rails app on the same server?
I have a rails app on a debian server running lighttpd and I''m trying to
set up typo so that it also works (with a different url). I have 4 URLs
running -- let''s call them foo.com, bar.com, www.typo.com and
php.typo.com
I am starting lighttpd by going into the directory where my foo.com app
is and typing either ruby script/server or script/server -e production
-- either
2006 Jan 30
14
RoR admin system
I''m preety new at RoR (and programming), I tried a few tutorials, and
really like the RoR simplicity, but my knowledge of the framework still
isn''t very good (to be true, i understand the basics, but not everything
that''s in the tutorials).
But still I''d like to create a website which has:
- front end interface (with no edit functions)
- admin interface
2007 May 08
4
help with rspec''ing controller
Hi,
I''m a rspec newbie. I''m having trouble with rspec''ing a simple
controller to Create a record.
I''ve tried a couple of approaches and still get errors:
Mock ''remedy'' expected :save! with (any args) once, but received it 0
times
-or-
Mock ''Remedy'' received unexpected message :save with (no args).
Here are my two
2007 Jul 26
6
response.should_not redirect_to
Hey,
May be it is just too deep night over here and I''m missing something
though I got this failure on {{{response.should_not redirect_to}}}:
''QueuesController should allow authenticated user to access ''show''''
FAILED
Matcher does not support should_not.
See Spec::Matchers for more information
about matchers.
Also I''ve found this in
2006 Jan 12
10
Take Rails Studio Workshop?
In two weeks, Dave Thomas will be in Pasadena doing a three-day Rails
workshop. I''m about to sign up for it. I figure three intense days
with Dave and a few dozen other Rails developers will produce huge
learning leaps for me.
Then it occurred to me that it might be useful to ask the list if
anyone has attended one of these workshops before and, if so, how
valuable you found
2006 Jan 29
3
SHLG and lib dir
Slowly figuring out how to get my SaltedHashLoginGenerator stuff working. The wiki page
says to put "before_filter :login_required" in the user (my "user" is "member") controller
or in ApplicationController. However, wherever I put it I get NoMethodError.
The rest of the SHLG stuff seems to be working... or at least I could get to the signup
page, register, and
2005 Aug 17
4
Stop an action ?
Hi.
I am working on a generic authentification system for rails (more
complete than the login generator). The way it works is you call a
method inside your action, passing the domain as a parameter (domains
are like a group of users with specific rights).
For that purpose, I need to exit the action inside this method because
it redirects to a login page if that person isn''t
2012 Jan 10
11
problem running quickbooks
Hi everyone
I'm looking for a bit of help I'm fairly new to Linux and completely new to Wine, but I installed Wine on Linux Mint 12 and then installed quickbooks 2003, Quickbooks runs ok but when I exit I get a message "Quickbooks has encountered an error" (Can't remember the rest) after that Quckbooks will not load again until I restart Linux I don't get any error
2007 Jul 30
6
Object.stubs doesn''t seem to work.
Hi
I''m using Mocha 0.5.3 and I want to stub out a call to Time.now, just
like the example in the post
http://blog.floehopper.org/articles/2007/06/08/mocha-0-5-released
However, trying it in irb gets me the following error:
>> require ''mocha''
=> true
>> Time.stubs(:now).returns(Time.parse(''Thu Feb 01 00:00:00 UTC 2007''))
NoMethodError:
2006 Jan 13
10
[Announcement] Google: Evil or Not?
"Google: Evil or Not?" is my first Rails webapp and I''ve just made it
public at http://evilornot.info
Do you still believe the ?Do no evil? Google mantra? Do you think
Google Book Search, the AOL deal, and Larry and Sergey?s 767 point to
Google losing it?s pristine morality and turning over to the dark side?
Now you can discover what the world thinks and contribute your
2008 Jan 24
3
Newbie needs help
Hello,
I have an old crossword program that runs OK on Win98, WinMe, and XP.
I have installed, via yum, wine and wine-devel and the associated
dependencies on my Fedora 8 system.
I have copied all the files from the program's install floppy to a
directory in my home folder, the same as installing it on XP.
However, when the program tries to access the word files it fails and
says to see
2015 Jul 28
3
[PATCH] virtio_mmio: add ACPI probing
On 28 July 2015 at 11:08, Michael S. Tsirkin <mst at redhat.com> wrote:
> On Tue, Jul 28, 2015 at 10:44:02AM +0100, Graeme Gregory wrote:
>> Added the match table and pointers for ACPI probing to the driver.
>>
>> This uses the same identifier for virt devices as being used for qemu
>> ARM64 ACPI support.
>>
>>
2015 Jul 28
3
[PATCH] virtio_mmio: add ACPI probing
On 28 July 2015 at 11:08, Michael S. Tsirkin <mst at redhat.com> wrote:
> On Tue, Jul 28, 2015 at 10:44:02AM +0100, Graeme Gregory wrote:
>> Added the match table and pointers for ACPI probing to the driver.
>>
>> This uses the same identifier for virt devices as being used for qemu
>> ARM64 ACPI support.
>>
>>
2006 Feb 27
3
Send parameter along with method in before_filter
Hello list,
I have an app that has a very simple authorization scheme. A person can have
many roles and roles can have many people.
In my app, I''d like to do
before_filter :login_required (since no role name is provided, it accepts
any users with credentials)
before_filter :login_required ("administrator") (only accepts those with
role administrator)
before_filter
2015 Jul 28
3
[PATCH] virtio_mmio: add ACPI probing
Added the match table and pointers for ACPI probing to the driver.
This uses the same identifier for virt devices as being used for qemu
ARM64 ACPI support.
http://git.linaro.org/people/shannon.zhao/qemu.git/commit/d0bf1955a3ecbab4b51d46f8c5dda02b7e14a17e
Signed-off-by: Graeme Gregory <graeme.gregory at linaro.org>
---
drivers/virtio/virtio_mmio.c | 10 ++++++++++
1 file changed, 10
2015 Jul 28
3
[PATCH] virtio_mmio: add ACPI probing
Added the match table and pointers for ACPI probing to the driver.
This uses the same identifier for virt devices as being used for qemu
ARM64 ACPI support.
http://git.linaro.org/people/shannon.zhao/qemu.git/commit/d0bf1955a3ecbab4b51d46f8c5dda02b7e14a17e
Signed-off-by: Graeme Gregory <graeme.gregory at linaro.org>
---
drivers/virtio/virtio_mmio.c | 10 ++++++++++
1 file changed, 10
2007 Mar 20
3
compiling dovecot on aix gcc 3.3.2
I try to compile the dovecot with gcc version 3.3.2 on aix. It seemed it was
okay. It was working but when i try to use quota dynamic modules i get
error.
Edlopen(/usr/local/lib/dovecot/imap/lib10_quota_plugin.so) failed: Could not
load module /usr/local/lib/dovecot/imap/lib10_quota_plugin.so.
System error: No such file or directory
Error: imap dump-capability process returned 89
When i check