Hi *,
I'm trying to write a plugin to integrate my SSO server into my rails app.
I'm finding the whole process quite difficult, I'm still blocked at configuring
rspec, and the lack of documentation is not helping.
I've put this inside my /vendor/plugins/foobar/spec/spec_helper.rb
ENV["RAILS_ENV"]
Hi *,
I need to test cookie creation with rspec and using Rack::Test, but for some
reason I'm not able to pair the real app that creates a cookie with the rspec
tests.
The spec is like this:
it "should authenticate using cookies" do
user = Factory.create :user
remember_token = Charon.m
On Apr 16, 2010, at 3:12 PM, David Chelimsky wrote:
> On Apr 16, 2010, at 8:07 AM, Nicholas Wieland wrote:
>
> What versions of rails, rspec, rspec-rails, ruby, etc?
>
> Where does this spec live?
It's sinatra 1.0, not rails.
ruby 1.8.7 (2010-01-10 patchlevel 249)
rsp
Hi *, is someone using rspec 2 and rails 3 for testing subdomains ? How do I
test for example in a route spec tis route ?
match 'profile', :to => 'users#profile', :constraints => { :subdomain => /.+/
}
TIA,
ngw
___
rspec-users mailing list
rspec-u
On Jul 27, 2010, at 6:40 PM, Nicholas Wieland wrote:
> Hi *, is someone using rspec 2 and rails 3 for testing subdomains ? How do I
> test for example in a route spec tis route ?
>
> match 'profile', :to => 'users#profile', :constraints => { :subdomain
On Oct 19, 2010, at 7:07 PM, Trey wrote:
> I'm sure something is borked in my app, but I can't seem to track it
> down.
Me too, and routing as well ...
constraints( :subdomain => /.+/ ) do
match '/dashboard' => 'users#show'
end
it "routes 'http://test.example.com/dashboard' to Users
Hi *, I'm trying to implement the Warden middleware, but apparently warden is
making autotest crash.
Here is the backtrace:
https://gist.github.com/657378/a2c8fc15a179331d23f9015a6aba75a0a635121f
Specs and features run as normal.
This is what is in strategies.rb: https://gist.github.com/663795
uot;circular require considered
harmful" seems already well known, it doesn't seem to match my case.
Does someone have suggestions about how to solve this ? In ree everything works
as expected.
ngw
--
Nicholas Wieland (ngw)
Zooppa CTO
911 Western Avenue, Su
Hi *, for some reasons I'm not able to fake writing on the FS during specs with
carrierwave, someone managed to make it work ?
I'm currently trying to use FakeFS, but apparently I'm not even able to run
specs after changing spec_helper. The exception it raises is:
/Users/ngw/.rvm/rubies/ruby-1.9
hi Scott, thanks for the answer.
https://gist.github.com/868356
I'm not even calling it inside the specs.
ngw
On Mar 13, 2011, at 5:28 PM, Scott Taylor wrote:
>
> How are you requiring FakeFS?
>
> Scott
>
> On Mar 13, 2011, at 10:30 AM, Nicholas Wieland wrot
a.to_s( 36 ) }.join(
" " )
Nicholas Wieland (ngw)
n...@nofeed.org
http://www.nofeed.org
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Does someone have an example on faking a file upload for just ensuring
it gets called, without actually uploading the file to s3.
I thought that stubbing Model.has_attached_file would be enough, but
it doesn't seem so ...
This is what I did:
Video.stub!( :has_attached_file ).with( :name ).an
Il giorno 09/giu/08, alle ore 14:11, David Chelimsky ha scritto:
On Jun 9, 2008, at 7:05 AM, Nicholas Wieland wrote:
Does someone have an example on faking a file upload for just
ensuring it gets called
http://talklikeaduck.denhaven2.com/articles/2008/04/18/rails-integration-test-file
Hi *,
I need to write a web service that accepts file uploads (even large
ones). My WS is REST based, so I have a create method that accepts
only POST.
My problem is passing the file to the method, so if someone already
solved this problem please let me know.
My method is like this:
def c
14 matches
Mail list logo