Re: Camping 2.0.RC0
Changed: @env.REQUEST_URI to @env['REQUEST_URI'] then all tests worked on my app. On Sat, Apr 3, 2010 at 10:23 PM, Magnus Holm judo...@gmail.com wrote: Ladies and gentlemen: gem install camping --prerelease (Look, no --source!) I'm not a big fan of betas/RCs, but this is a rather big change and I want to make sure we release something that actually works. I don't have any apps that runs on Camping (neither 1.5 nor 1.9/2.0), so I was hoping if some of you could verify that it works as expected? I'll give it a week or so, and if everything seems fine I'll… * Copy the documentation at http://stuff.judofyr.net/camping-docs/ to http://camping.rubyforge.org/ * Make sure all the links in the wiki points to the right place * Release the gem as 2.0 at rubygems.org * Write an announcement which I'll post to ruby-core, rack-devel and camping-list * Submit the announcement to Rubyflow and ruby.reddit * Write a patch which removes Rack::Adapters::Camping from Rack * (Possibly write a little blog post comparing Camping and Sinatra from an objective point of view) * Start hacking on Camping 2.1! Puh. What'd ya think? Oh, and busbey has been playing a bit with the code: http://github.com/busbey/camping. Some awesome migrations ideas in there. Looking forward to merge them into 2.1! // Magnus Holm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list
Re: camping-test error: undefined method `fixtures'
On 05/05/2009, at 22.49, Magnus Holm wrote: Oh crap. Did that get commited? I was just testing if the memory- database had anything to do with it and forgot to change it back later. Pushing a fix tomorrow :-) Sweet. One other thing, I can't figure out how to input some @state before I call get/post/etc... I need to test my app while I'm logged in, which just means that some user ID is set in @state, is that possible? E.g.: test i can get my secret page when I am logged id do @state.user_id = 1 get '/secretpage' assert_response :ok end Thanks, Mikkel //Magnus Holm On Tue, May 5, 2009 at 22:40, Mikkel Refsgaard Bech mik...@refsgaardbech.dk wrote: On 03/05/2009, at 21.34, Magnus Holm wrote: I've pushed out a fix now. Could you verify it? Works fine, thank you. Any reason for not using the :memory: database any longer? Regards, Mikkel ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list
camping-test error: undefined method `fixtures'
Hi Trying to use camping-test with my camping app but I get an error: undefined method `fixtures' The error can be reproduced by using this empty app (your_app.rb): require 'camping' Camping.goes :YourApp module Steps module Models end module Controllers end module Views end end And running the test from camping-test: http://github.com/judofyr/camping-test/tree/master I just run: # ruby test_your_app.rb test_your_app.rb:7: undefined method `fixtures' for YourApp::Tests::TestSomeBasicStuff:Class (NoMethodError) camping-1.9.300 activesupport-2.3.2 activerecord-2.3.2 camping-test Is anyone using this successfully? Regards, Mikkel ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list