[rspec-users] Need suggestions on how to test a class

2011-04-12 Thread Nicholas Wieland
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

Re: [rspec-users] Faking FS in specs

2011-03-13 Thread Nicholas Wieland
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

[rspec-users] Faking FS in specs

2011-03-13 Thread Nicholas Wieland
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

[rspec-users] Problem with 1.9.2

2010-12-06 Thread Nicholas Wieland
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

[rspec-users] Autotest not even starting

2010-11-05 Thread Nicholas Wieland
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

Re: [rspec-users] Routing errors with Rails 3.0.1 and Rspec 2.0.1

2010-10-20 Thread Nicholas Wieland
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

Re: [rspec-users] Testing subdomains

2010-07-28 Thread Nicholas Wieland
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

[rspec-users] Testing subdomains

2010-07-27 Thread Nicholas Wieland
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

Re: [rspec-users] Rack::Test + cookies + rspec

2010-04-16 Thread Nicholas Wieland
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

[rspec-users] Rack::Test + cookies + rspec

2010-04-16 Thread Nicholas Wieland
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

[rspec-users] Writing rails plugins

2010-04-16 Thread Nicholas Wieland
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"]

[rspec-users] Testing upload via web services

2008-07-16 Thread Nicholas Wieland
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

Re: [rspec-users] Testing file attachment with Paperclip

2008-06-09 Thread Nicholas Wieland
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

[rspec-users] Testing file attachment with Paperclip

2008-06-09 Thread Nicholas Wieland
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