Displaying 20 results from an estimated 2000 matches similar to: "cookies"
2006 Dec 01
2
Mongrel 0.3.18, rails 1.1.6 and cookies
I''ve run into an issue with my rails application being unable to
properly set cookies on Mongrel 0.3.18. If I run the simplified code
below in Mongrel 3.14.4, both cookies are properly sent to and saved
by the browser. With the same code in 0.3.18, only the auth_token
cookie is created (if I switch them, only the userid as it will only
properly create the first cookie in the list.)
2007 Dec 12
3
undefined method: controller_name
With rspec 1.0.8 I have a spec in the directory:
spec/units/controllers/application_controller_spec.rb
require File.dirname(__FILE__) + ''/../../spec_helper''
class DummyController < ApplicationController
def index
raise "Prevent index from rendering"
end
end
describe ApplicationController, "Handling errors in production",
:behaviour_type =>
2007 Dec 04
1
spec''ing shared controller methods
I want to isolate and spec methods that are shared by controllers,
and live in application.rb.
Whereas I usually also provide examples in individual controllers
that use these methods, not necessarily all the edge cases and I''d
like to isolate the examples.
This is the approach I''m taking (thanks to bryanl for suggestions and
http://pastie.caboo.se/123626). WDYT?
This
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
2011 Aug 02
2
ror +auth_token + c#
HI,
i have to change a desktop app written in c# to post and get some data
to/from a rails app. the railsapp uses devise.
what im doing right now is:
1) pull up sign_in page
2) parse 1) for auth_token
3) post username+ pwd & auth_token
3.1) if 3 ok > goto 4)
4) post json data
that works all good, except that i do not provide auth_token in step4 , but
a) rails is still accepting my data.
2011 Aug 02
2
ror +auth_token + c#
HI,
i have to change a desktop app written in c# to post and get some data
to/from a rails app. the railsapp uses devise.
what im doing right now is:
1) pull up sign_in page
2) parse 1) for auth_token
3) post username+ pwd & auth_token
3.1) if 3 ok > goto 4)
4) post json data
that works all good, except that i do not provide auth_token in step4 , but
a) rails is still accepting my data.
2008 Jan 30
2
Where can I get "authenticate_with_http_basic"?
Hi,
I just installed Rails 2.0.2
[root@mymachine easyx]# ruby --version
ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-linux]
[root@mymachine easyrx]# gem install rails --include-dependencies
Need to update 16 gems from http://gems.rubyforge.org
................
complete
Successfully installed rails-2.0.2
[root@remandev easyrx]#
But I''m getting this error in my restful_authentication
2015 Aug 05
3
question on autch cache parameters
Hi list,
I have a question on auth caching in 2.2.18.
I am using acl_groups for a master user, appended in a static userdb file
# snip ###############################
master at uma:{SHA}XXXX=::::::userdb_acl_groups=umareadmaster
allow_nets=127.0.0.1
# snap ###############################
and use this group in a global ACL file.
I discovered this only works on first NOT-cached login
2007 Dec 01
0
mock feed
Hello generous coders,
I''m having difficulty getting a couple of tests to pass.
I have an address model which takes an address and with a callback on save
and update passes the address to google''s
geocoding service. The returned XML is parsed and saved to the address
object:
protected
def geocode_address
key = "mykey"
url =
2015 Aug 05
0
question on autch cache parameters
just tested against dovecot 2.2.15
everythings works fine. so might be a bug introduced between 2.2.16 and
2.2.18
On 08/05/2015 04:30 PM, matthias lay wrote:
> Hi list,
>
> I have a question on auth caching in 2.2.18.
>
> I am using acl_groups for a master user, appended in a static userdb file
>
> # snip ###############################
> master at
2015 Aug 27
0
question on autch cache parameters
Hello
Thank you for your report. We really appreciate it, especially when you can pinpoint a commit.
However, I am unable to reproduce this. Could you post your doveconf -n please? Im especially interested in your passdb and
userdb configurations and auth-cache settings.
br,
Teemu Huovila
On 08/06/2015 01:07 PM, matthias lay wrote:
> hi timo,
>
> I checked out the commit causing
2007 May 15
3
NOOB question RSPEC
Hi all !!
I have this code:
require ''account''
describe Account, "when first created" do
before do
@account = Account.new
end
it "should have a balance of $0" do
@account.balance.should eql(Money.new(0, :dollars))
end
after do
@account = nil
end
end
How can I pass the @account.balance.should eql(Money.new(0, :dollars))
spec. From my
2011 Apr 06
2
XCP - license expiry problem - http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1756 not fixed?
Hello,
i have 3 XCP 1.0.0 hosts in a pool, one of them is not enabled:
xe host-param-list uuid=402f07f4-99c0-4501-9787-8dee8984e313
uuid ( RO) :
402f07f4-99c0-4501-9787-8dee8984e313
name-label ( RW): xcp1.domain.com
name-description ( RW): Default install of XenServer
allowed-operations (SRO):
2007 Dec 03
5
spec for model_id should eql
Hello,
I''m confused why the spec described below is failing. Other simple
comparison specs are passing fine for the same model. The code is working
accordingly when I test it through the console, I''m just having difficulty
getting this spec to work. Any pointers would be appreciated.
Failure message:
''Address fetch and geocode should extract department and write to
2007 Sep 05
4
False Positives and Autotest on New Folders
False Positives
I just discovered how easy it was to create a false positive when I, trying
my first RSpec test, did this:
ob.should eql?(''foo'')
instead of:
ob.should eql(''foo'')
or:
ob.should == ''foo''
As far as I can see, this is roughly equivalent to:
ob.should false
Neither eql?(''foo'') nor false causes the spec
2008 Mar 19
2
Stub / Mock - A little guidance?
Hi there,
I''m still trying to wrap my head around when to use a stub and a mock.
If I understand this right, I should be using a ''mock'' when imitating
an object, but not its behavior. I should be using a stub when I want
to imitate the behavior of an object. Does that sound about right?
With that said, I''m struggling a little trying to spec out this
instance
2015 Aug 06
3
question on autch cache parameters
hi timo,
I checked out the commit causing this.
its this one:
http://hg.dovecot.org/dovecot-2.2/diff/5e445c659f89/src/auth/auth-request.c#l1.32
if I move this block back as it was. everything is fine
diff -r a46620d6e0ff -r 5e445c659f89 src/auth/auth-request.c
--- a/src/auth/auth-request.c Tue May 05 13:35:52 2015 +0300
+++ b/src/auth/auth-request.c Tue May 05 14:16:31 2015 +0300
@@ -618,30
2012 Oct 31
0
help with shadow copy implementation
Hi,
Over the past several days I have been trying to get the shadow to work with samba but haven't been successful. Can someone check below config and let me know if I am missing something? We are using Equallogic SAN and iSCSI LUNS to mount volumes.
I can cleanly access samba shares on Windows 7 clients but just not shadow copy. I have referred the official how-to but couldn't get it to
2010 Apr 14
5
Model Magic
>> [].eql? @product.files
=> false
>> @product.files.eql? []
=> true
version: 2.3.5
Product :has_many files
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
2007 Jul 26
5
Coding standards and whitespace
Recently as a result of using Git I''ve noticed a number of
inconsistencies in the RSpec codebase with respect to whitespace
(mixed line endings, mixed use of spaces and tabs for indentation,
and trailing whitespace at the end of lines). I never would have
noticed, but Git produces nice colorized diff output which highlights
these kinds of inconsistencies.
I wanted to ask if the