From boss at topfunky.com Fri Jun 1 01:43:05 2007 From: boss at topfunky.com (Geoffrey Grosenbach) Date: Thu, 31 May 2007 22:43:05 -0700 Subject: Thief, a Simple Camping App Message-ID: <15754f7e0705312243w5b2f19a4s7208879bed7c42ec@mail.gmail.com> For your entertainment, a simple Camping app to watch your Backpack account and show a list of recently updated pages. I hope to implement an RSS feed soon. Uses Hpricot to parse the XML from Backpack. http://svn.topfunky.com/public/camping/thief/ Geoffrey Grosenbach ........................ Screencast | http://peepcode.com From fisheye at metacasa.net Tue Jun 19 11:22:21 2007 From: fisheye at metacasa.net (John Sheets) Date: Tue, 19 Jun 2007 10:22:21 -0500 Subject: [ANN] TentSteak 0.2.0 Message-ID: The second release of TentSteak is out and available as a gem on rubyforge ("gem install tent_steak"). This version introduces a handful of new form helpers, a couple method renames, editable HTML tables, and some application bootstrappers for kickstarting Camping and initializing ActiveRecord. It's still in active development, and I'd very much appreciate suggestions, feature requests, and even code review. On tap for the next release is: a thorough test suite; a bit of housecleaning to better modularize the now-huge tent_steak.rb file into smaller bits; and a very simple authentication add-on. Plus whatever else I happen to need for my own Camping projects. Enjoy! ---- CHANGES: * HTML Forms * Added new form field helpers: input_text, input_password, input_submit, input_hidden, and input_checkbox. * Renamed: * file_field => input_file * select_field => select_menu * HTML Tables * Added support for regexp's in tablerow option :rowclass * New support for editable table columns * Renamed auto_table option :database_columns to :methods * auto_table used to expand row objects into cell arrays; now defers expansion to tablerow(:methods) * auto_table fixed to better handle non-AR row objects * Can pass a block to grouping_table for custom blank rows * Application Helpers * New method init_db to encapsulate AR startup * New method add_local_paths to add local (non-gem) libraries to $LOAD_PATH * New method run_app to run Camping app; supports mongrel, webrick, and CGI * New method extract_form_fields to extract changed data after a posted table edit John -- "The Internet is not something you just dump something on. It's not a big truck. It's a series of tubes." --Senator Ted Stevens, R-AK John R. Sheets http://bark.metacasa.net -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/camping-list/attachments/20070619/3fef6230/attachment.html From fisheye at metacasa.net Tue Jun 19 15:04:23 2007 From: fisheye at metacasa.net (John Sheets) Date: Tue, 19 Jun 2007 14:04:23 -0500 Subject: [ANN] TentSteak 0.2.0 In-Reply-To: References: Message-ID: <7DE54015-645D-47B4-A1C2-8F3014535497@metacasa.net> On Jun 19, 2007, at 10:22 AM, John Sheets wrote: > The second release of TentSteak is out and available as a gem on > rubyforge ("gem install tent_steak"). Sorry, I should have mentioned: project info and API docs at: http://rubyforge.org/projects/tentsteak/ http://tentsteak.rubyforge.org/ John -- "The Internet is not something you just dump something on. It's not a big truck. It's a series of tubes." --Senator Ted Stevens, R-AK John R. Sheets http://bark.metacasa.net -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/camping-list/attachments/20070619/be0ac605/attachment-0001.html From boss at topfunky.com Tue Jun 19 15:08:43 2007 From: boss at topfunky.com (Geoffrey Grosenbach) Date: Tue, 19 Jun 2007 12:08:43 -0700 Subject: [ANN] TentSteak 0.2.0 In-Reply-To: <7DE54015-645D-47B4-A1C2-8F3014535497@metacasa.net> References: <7DE54015-645D-47B4-A1C2-8F3014535497@metacasa.net> Message-ID: <15754f7e0706191208r31b2c52fma293a744e8c1ab5d@mail.gmail.com> On 6/19/07, John Sheets wrote: > Sorry, I should have mentioned: project info and API docs at: > > http://rubyforge.org/projects/tentsteak/ > http://tentsteak.rubyforge.org/ Steak: piece of meat Stake: a rod used for securing things to the ground TentSteak: A tent made out of meat? A hard piece of meat used to secure a tent to the ground? Could you explain? Geoffrey Grosenbach boss at topfunky.com ........................ Blog | http://nubyonrails.com Podcast | http://podcast.rubyonrails.com Screencast | http://peepcode.com From _ at whats-your.name Tue Jun 19 15:20:38 2007 From: _ at whats-your.name (carmen) Date: Tue, 19 Jun 2007 15:20:38 -0400 Subject: Reloader paths/ Message-ID: <20070619192038.GA2734@replic.net> after investigating why the reloader wasnt working , i discovered 2 probs, one of which was sorta my fault (but will likely happen to others who make one-file apps) first, my app was like this: #!/usr/bn/env ruby %w{applib1 applib2 digest/md80 airbus}.each{|r| require r}} if __FILE__ == $0 Mongrel.config do handler '/', Camping.reloader.new(__FILE__) end end not exactly sure how it wraps the run request, since it mainly returns a constant name. but even so, the files are already required. maybe reloader should record the current $LOADED_FEATURES as soon as its loaded so even stuff later in the require line gets recorded.. im not sure where camping draws the line for 'too magic', but i think its somewhere like ' i havent seen a blaze mark on a tree in a few miles, but theres sort of a path here, maybe made by native chipmunks, so im going to follow it...' even as i reworked the app structure on disk, to have a front layer that just does the launching (defeating the single file thing) it still wasnt loading. , its matching /^file.basename(scriptname)/,. so unless you have appname.rb then appname/ for further stuff (which doesnt contain your entire app in a dir), it breaks. one solution would be to expand the path of the requires, then compare File.dirname.. anyone have any preferences on whether the former or the latter technique is a less world-changing solution? would either one break/fix RV / TentSteak / CampingServer? From fisheye at metacasa.net Tue Jun 19 20:51:25 2007 From: fisheye at metacasa.net (John Sheets) Date: Tue, 19 Jun 2007 19:51:25 -0500 Subject: [ANN] TentSteak 0.2.0 In-Reply-To: <15754f7e0706191208r31b2c52fma293a744e8c1ab5d@mail.gmail.com> References: <7DE54015-645D-47B4-A1C2-8F3014535497@metacasa.net> <15754f7e0706191208r31b2c52fma293a744e8c1ab5d@mail.gmail.com> Message-ID: <59161F0D-8128-4406-9DB4-61091F88E091@metacasa.net> On Jun 19, 2007, at 2:08 PM, Geoffrey Grosenbach wrote: > Steak: piece of meat > Stake: a rod used for securing things to the ground > > TentSteak: A tent made out of meat? A hard piece of meat used to > secure a tent to the ground? > > Could you explain? TentSteak is one step up from TentBurger. Or is that one step up from TarpSteak? I can never keep it straight. Really it's just yummy cuisine for Camping apps. Come to think of it, I should really create a vegan-friendly sister project, TentTofu -- it has half the features of TentSteak, but at least you can't catch Mad CGI Disease from it. (c: Give 'er a try and let me know what you think.... John -- "The Internet is not something you just dump something on. It's not a big truck. It's a series of tubes." --Senator Ted Stevens, R-AK John R. Sheets http://bark.metacasa.net -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/camping-list/attachments/20070619/fdf8e70d/attachment.html From _ at whats-your.name Tue Jun 19 20:53:48 2007 From: _ at whats-your.name (carmen) Date: Tue, 19 Jun 2007 20:53:48 -0400 Subject: [ANN] TentSteak 0.2.0 In-Reply-To: <59161F0D-8128-4406-9DB4-61091F88E091@metacasa.net> References: <7DE54015-645D-47B4-A1C2-8F3014535497@metacasa.net> <15754f7e0706191208r31b2c52fma293a744e8c1ab5d@mail.gmail.com> <59161F0D-8128-4406-9DB4-61091F88E091@metacasa.net> Message-ID: <20070620005347.GA18076@replic.net> On Tue Jun 19, 2007 at 07:51:25PM -0500, John Sheets wrote: > On Jun 19, 2007, at 2:08 PM, Geoffrey Grosenbach wrote: > > > Steak: piece of meat > > Stake: a rod used for securing things to the ground > > > > TentSteak: A tent made out of meat? A hard piece of meat used to > > secure a tent to the ground? > > > > Could you explain? > > TentSteak is one step up from TentBurger. Or is that one step up from > TarpSteak? I can never keep it straight. Really it's just yummy cuisine > for Camping apps. Come to think of it, I should really create a > vegan-friendly sister project, TentTofu -- it has half the features of my local supermarket has a 'tofu steak'. its not very good.. > TentSteak, but at least you can't catch Mad CGI Disease from it. sorry what is this thing again. something about automating mixins? i'll pass ! unless it involves A1 sauce and lots of Tabasco From fisheye at metacasa.net Tue Jun 19 21:01:10 2007 From: fisheye at metacasa.net (John Sheets) Date: Tue, 19 Jun 2007 20:01:10 -0500 Subject: Reloader paths/ In-Reply-To: <20070619192038.GA2734@replic.net> References: <20070619192038.GA2734@replic.net> Message-ID: <68D7FD1B-7BEC-4294-BF53-8B9B237B8EE2@metacasa.net> On Jun 19, 2007, at 2:20 PM, carmen wrote: > after investigating why the reloader wasnt working , i discovered 2 > probs, one of which was sorta my fault (but will likely happen to > others who make one-file apps) > anyone have any preferences on whether the former or the latter > technique is a less world-changing solution? would either one break/ > fix RV / TentSteak / CampingServer? No idea about TentSteak. Here's my parameterized kickstart method to run a Camping app under mongrel, webrick, or CGI (haven't gotten to FCGI yet). Anything clunky in there? It's kind of an early spitball at this point, so lots of room for improvement. def self.run_app(app_module, app_base = "app") case ARGV.first when "mongrel" puts "Running Mongrel in FCGI mode" require "mongrel/camping" app_module::Models::Base.threaded_connections = false server = Mongrel::Camping::start("0.0.0.0", 3301, "/# {app_base}/", app_module) puts "#{app_module} app is running at http://localhost:3301/# {app_base}/" server.run.join when "webrick" puts "Running in WEBrick mode" require 'webrick/httpserver' require 'camping/webrick' s = WEBrick::HTTPServer.new(:BindAddress => "0.0.0.0", :Port => 3301) s.mount("/#{app_base}", WEBrick::CampingHandler, app_module) trap(:INT) { s.shutdown } s.start else # Default to CGI. puts app_module.run end end John -- "The Internet is not something you just dump something on. It's not a big truck. It's a series of tubes." --Senator Ted Stevens, R-AK John R. Sheets http://bark.metacasa.net -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/camping-list/attachments/20070619/faf05e67/attachment.html From fisheye at metacasa.net Tue Jun 19 21:07:53 2007 From: fisheye at metacasa.net (John Sheets) Date: Tue, 19 Jun 2007 20:07:53 -0500 Subject: [ANN] TentSteak 0.2.0 In-Reply-To: <20070620005347.GA18076@replic.net> References: <7DE54015-645D-47B4-A1C2-8F3014535497@metacasa.net> <15754f7e0706191208r31b2c52fma293a744e8c1ab5d@mail.gmail.com> <59161F0D-8128-4406-9DB4-61091F88E091@metacasa.net> <20070620005347.GA18076@replic.net> Message-ID: On Jun 19, 2007, at 7:53 PM, carmen wrote: > sorry what is this thing again. something about automating mixins? > i'll pass ! unless it involves A1 sauce and lots of Tabasco That's a small part of it. The bulk of it is currently helper methods for stuff like building HTML tables and forms. More to come soon. John -- "The Internet is not something you just dump something on. It's not a big truck. It's a series of tubes." --Senator Ted Stevens, R-AK John R. Sheets http://bark.metacasa.net -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/camping-list/attachments/20070619/565b27b1/attachment-0001.html From ruby at schmidtwisser.de Fri Jun 22 10:51:37 2007 From: ruby at schmidtwisser.de (Gregor Schmidt) Date: Fri, 22 Jun 2007 16:51:37 +0200 Subject: Simulate HTTP put and delete in Camping/SleepingBag In-Reply-To: <2a50c7540706220740p6c594cd7n9c92fc81853c82d9@mail.gmail.com> References: <2a50c7540706220740p6c594cd7n9c92fc81853c82d9@mail.gmail.com> Message-ID: <2a50c7540706220751m5561ddf3ld435693c004cd88a@mail.gmail.com> Hello, I'm not yet a camping guru nor a RESTafarian, but I try. Currently I'm trying to build a rest-style web app with sleeping bag/camping and I may successfully access the index, show, new, create and edit methods, that are provided with sleeping bag. But I don't know, how to build a form or link to access destroy and update. I think this is mainly because of the corresponding HTTP verbs, that are supposed to be used. But unfortunately PUT and DELETE are not supported by browsers. In Rails, these are simulated with a hidden field "method" that contains these meta information. In the Mailing List Archive a found a hint, that sleeping bag would use a hidden field "_verb" respectively, but I cannot make it work, neither can I find any hints on that issue in the source of sleeping bag. Does anybody know, how I can build a link/form to update and destroy? Thanks for these great tools, both camping and sleeping bag feel as lightweight as it gets. Cheers, Gregor From mark.m.fredrickson at gmail.com Fri Jun 22 11:16:39 2007 From: mark.m.fredrickson at gmail.com (Mark Fredrickson) Date: Fri, 22 Jun 2007 10:16:39 -0500 Subject: Simulate HTTP put and delete in Camping/SleepingBag In-Reply-To: <2a50c7540706220751m5561ddf3ld435693c004cd88a@mail.gmail.com> References: <2a50c7540706220740p6c594cd7n9c92fc81853c82d9@mail.gmail.com> <2a50c7540706220751m5561ddf3ld435693c004cd88a@mail.gmail.com> Message-ID: <3db8a8970706220816l360010f7ua0e63c9e2cb19c68@mail.gmail.com> Hi Gregor, Take a look at: http://osdir.com/ml/lang.ruby.camping.general/2006-11/msg00008.html I'm not familiar with sleeping bag (link?) but perhaps this will help. -M On 6/22/07, Gregor Schmidt wrote: > Hello, > > I'm not yet a camping guru nor a RESTafarian, but I try. > > Currently I'm trying to build a rest-style web app with sleeping > bag/camping and I may successfully access the index, show, new, create > and edit methods, that are provided with sleeping bag. But I don't > know, how to build a form or link to access destroy and update. > > I think this is mainly because of the corresponding HTTP verbs, that > are supposed to be used. But unfortunately PUT and DELETE are not > supported by browsers. In Rails, these are simulated with a hidden > field "method" that contains these meta information. In the Mailing > List Archive a found a hint, that sleeping bag would use a hidden > field "_verb" respectively, but I cannot make it work, neither can I > find any hints on that issue in the source of sleeping bag. > > Does anybody know, how I can build a link/form to update and destroy? > > Thanks for these great tools, both camping and sleeping bag feel as > lightweight as it gets. > > Cheers, > > Gregor > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > From ruby at schmidtwisser.de Fri Jun 22 11:31:19 2007 From: ruby at schmidtwisser.de (Gregor Schmidt) Date: Fri, 22 Jun 2007 17:31:19 +0200 Subject: Simulate HTTP put and delete in Camping/SleepingBag In-Reply-To: <2a50c7540706220827x389305eai3ce29123f700c9e9@mail.gmail.com> References: <2a50c7540706220740p6c594cd7n9c92fc81853c82d9@mail.gmail.com> <2a50c7540706220751m5561ddf3ld435693c004cd88a@mail.gmail.com> <3db8a8970706220816l360010f7ua0e63c9e2cb19c68@mail.gmail.com> <2a50c7540706220827x389305eai3ce29123f700c9e9@mail.gmail.com> Message-ID: <2a50c7540706220831l2ee17f5bw14751587c77e5cb3@mail.gmail.com> Hi Mark, Thanks for the tip, with the help of this snippet, the actions are routed correctly. SleepingBag is a REST-API for Camping, that I stumbled upon on this mailing list, I guess. It provides you with rails-like routing to the standard REST methods for your controllers. Unfortunately, there is not a lot of documentation, but the specs and the given example is quite sufficient. You may find it at http://code.google.com/p/sleepingbag/ and in this list at http://www.mail-archive.com/camping-list at rubyforge.org/msg00150.html with some introductory words. Best, Gregor On 6/22/07, Mark Fredrickson wrote: > Hi Gregor, > > Take a look at: > > http://osdir.com/ml/lang.ruby.camping.general/2006-11/msg00008.html > > I'm not familiar with sleeping bag (link?) but perhaps this will help. > > -M > > > On 6/22/07, Gregor Schmidt wrote: > > Hello, > > > > I'm not yet a camping guru nor a RESTafarian, but I try. > > > > Currently I'm trying to build a rest-style web app with sleeping > > bag/camping and I may successfully access the index, show, new, create > > and edit methods, that are provided with sleeping bag. But I don't > > know, how to build a form or link to access destroy and update. > > > > I think this is mainly because of the corresponding HTTP verbs, that > > are supposed to be used. But unfortunately PUT and DELETE are not > > supported by browsers. In Rails, these are simulated with a hidden > > field "method" that contains these meta information. In the Mailing > > List Archive a found a hint, that sleeping bag would use a hidden > > field "_verb" respectively, but I cannot make it work, neither can I > > find any hints on that issue in the source of sleeping bag. > > > > Does anybody know, how I can build a link/form to update and destroy? > > > > Thanks for these great tools, both camping and sleeping bag feel as > > lightweight as it gets. > > > > Cheers, > > > > Gregor > > _______________________________________________ > > Camping-list mailing list > > Camping-list at rubyforge.org > > http://rubyforge.org/mailman/listinfo/camping-list > > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > From _ at whats-your.name Fri Jun 22 16:49:40 2007 From: _ at whats-your.name (carmen) Date: Fri, 22 Jun 2007 16:49:40 -0400 Subject: Simulate HTTP put and delete in Camping/SleepingBag In-Reply-To: <2a50c7540706220751m5561ddf3ld435693c004cd88a@mail.gmail.com> References: <2a50c7540706220740p6c594cd7n9c92fc81853c82d9@mail.gmail.com> <2a50c7540706220751m5561ddf3ld435693c004cd88a@mail.gmail.com> Message-ID: <20070622204940.GA5339@replic.net> On Fri Jun 22, 2007 at 04:51:37PM +0200, Gregor Schmidt wrote: > Hello, > > I'm not yet a camping guru nor a RESTafarian, but I try. > > Currently I'm trying to build a rest-style web app with sleeping > bag/camping and I may successfully access the index, show, new, create > and edit methods, that are provided with sleeping bag. But I don't > know, how to build a form or link to access destroy and update. > > I think this is mainly because of the corresponding HTTP verbs, that > are supposed to be used. But unfortunately PUT and DELETE are not > supported by browsers. WebKit and Firefox both take just about any string as the method name. at least if youre submitting with XHR which is good, because then you can use appropriately named methods in your camping app, instead of laying things inside other protocols (Atom/Bayeux) or resorting to URL and form field hacks (Rails).. > I cannot make it work, neither can I > find any hints on that issue in the source of sleeping bag. if you want to emulate rails. why not just use Rails? do you like jumping through hoops to be tied to arbitrary ORMs* and additionally emulations of said ORMs frontend-facilitating features on another framework? * and ORMs that tie you to a static schema and want you to only update it once every quarter during a migration-festival and hope you got all the new fields right... and the fields are just arbitrary strings rather than anything more meaningful to the web at large.. > Does anybody know, how I can build a link/form to update and destroy? i generate the form clientside, cache the old value, and submit PATCH methods with the new value. this makes more sense than PUT, but PATCH appeared in some draft version f the HTTP1.1 RFC then disappeared, or something. im pretty sure mongrel was trying to eat anything that wasnt PUT/POST/GET last i tried though. i think i may have reluctantly switched to a less sensical name beacuse i couldnt figure out how to make mongrel not toss the reqs.. as for REST, i tend to just use the request URI as an implicit subject (object ID) for the other operations. it helps if youre using HTTP URIs for everything including properties, otherwise you have to have a mapping layer somewhere. > > Thanks for these great tools, both camping and sleeping bag feel as > lightweight as it gets. > > Cheers, > > Gregor > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list From joshua.schairbaum at gmail.com Wed Jun 27 15:10:25 2007 From: joshua.schairbaum at gmail.com (Joshua Schairbaum) Date: Wed, 27 Jun 2007 15:10:25 -0400 Subject: Mosquito Fixtures Won't Load Message-ID: <7408e5820706271210y128ea91aq3cb48650299246a9@mail.gmail.com> I can't get fixtures to load correctly in a Mosquito test. The first fixture loads in the unit test, but the rest don't load at all. File structure: tracker/ tracker.rb test/ test_tracker.rb fixtures/ tracker_measurements.yml tracker_projects.yml Relevant test code: require 'rubygems' require 'mosquito' require File.dirname(__FILE__) + "/../tracker" Tracker.create include Tracker::Models ... class TestMeasurement < Camping::UnitTest fixtures :tracker_measurements, :tracker_projects ... def test_should_have_project measurement = Measurement.find 1 assert_kind_of Project, measurement.project # measurement.project is always nilClass assert_equal measurement.project_id, measurement.project.id end ... end The test.log shows that tracker_measurements.yml is loaded, but tracker_projects.yml never is touched. I know the relationship works because I'm using it in the application already, and I also cannot load any other fixtures, no matter the name. Any help would be greatly appreciated, Josh -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/camping-list/attachments/20070627/24c3dddd/attachment.html From alpha.chen at gmail.com Wed Jun 27 16:13:36 2007 From: alpha.chen at gmail.com (Alpha Chen) Date: Wed, 27 Jun 2007 13:13:36 -0700 Subject: Mosquito Fixtures Won't Load In-Reply-To: <7408e5820706271210y128ea91aq3cb48650299246a9@mail.gmail.com> References: <7408e5820706271210y128ea91aq3cb48650299246a9@mail.gmail.com> Message-ID: On 6/27/07, Joshua Schairbaum wrote: > > I can't get fixtures to load correctly in a Mosquito test. The first > fixture loads in the unit test, but the rest don't load at all. I actually ran into a similar problem, although none of my fixtures were loaded at all. On running the example blog tests included with mosquito, there were a number of failures which appeared related to to the non-loading fixtures. I found that changing "change_fixtures" to "self.fixtures" on line 25 of mosquito.rb solved the problem for me, though I don't know enough about Camping, Mosquito, and ActiveRecord to know if this is the best fix or not. Regards, Alpha -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/camping-list/attachments/20070627/ecc602af/attachment.html From boss at topfunky.com Wed Jun 27 17:03:14 2007 From: boss at topfunky.com (Geoffrey Grosenbach) Date: Wed, 27 Jun 2007 14:03:14 -0700 Subject: Mosquito Fixtures Won't Load In-Reply-To: References: <7408e5820706271210y128ea91aq3cb48650299246a9@mail.gmail.com> Message-ID: <15754f7e0706271403o40541195ke3f0aa3bd5469e01@mail.gmail.com> > On 6/27/07, Joshua Schairbaum wrote: > > I can't get fixtures to load correctly in a Mosquito test. The first > fixture loads in the unit test, but the rest don't load at all. I haven't touched Mosquito in a while. I've actually hacked out a simple BDD library for Camping using RSpec, but haven't polished it up for release yet. -- Geoffrey Grosenbach ........................ Screencast | http://peepcode.com From joshua.schairbaum at gmail.com Wed Jun 27 21:06:29 2007 From: joshua.schairbaum at gmail.com (Joshua Schairbaum) Date: Wed, 27 Jun 2007 21:06:29 -0400 Subject: Mosquito Fixtures Won't Load In-Reply-To: References: <7408e5820706271210y128ea91aq3cb48650299246a9@mail.gmail.com> Message-ID: <7408e5820706271806oc71cdffq9e2bb4a2e6ddc9a3@mail.gmail.com> I've determined that I'm not even reaching the "create_fixtures" method when calling a test. Very perplexing... I'm wondering if using an older version of Active Record would solve it temporarily. I'm assuming that there's been a change to the way the that fixtures are loaded in Rails, and the change hasn't filtered down yet. :) Josh On 6/27/07, Alpha Chen wrote: > > On 6/27/07, Joshua Schairbaum wrote: > > > > I can't get fixtures to load correctly in a Mosquito test. The first > > fixture loads in the unit test, but the rest don't load at all. > > > I actually ran into a similar problem, although none of my fixtures were > loaded at all. On running the example blog tests included with mosquito, > there were a number of failures which appeared related to to the non-loading > fixtures. > > I found that changing "change_fixtures" to "self.fixtures" on line 25 of > mosquito.rb solved the problem for me, though I don't know enough about > Camping, Mosquito, and ActiveRecord to know if this is the best fix or not. > > Regards, > Alpha > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/camping-list/attachments/20070627/5c62c4e1/attachment-0001.html From mark.m.fredrickson at gmail.com Wed Jun 27 22:07:28 2007 From: mark.m.fredrickson at gmail.com (Mark Fredrickson) Date: Wed, 27 Jun 2007 21:07:28 -0500 Subject: Mosquito Fixtures Won't Load In-Reply-To: <15754f7e0706271403o40541195ke3f0aa3bd5469e01@mail.gmail.com> References: <7408e5820706271210y128ea91aq3cb48650299246a9@mail.gmail.com> <15754f7e0706271403o40541195ke3f0aa3bd5469e01@mail.gmail.com> Message-ID: <3db8a8970706271907u7c5a10dsba975b7c84352b49@mail.gmail.com> I'd be interested in seeing your RSpec work. I'm working on an app ("Specter") that will display run the specs for any apps you're running, and store the successes and failures in the db for historical purposes. I must say, writing specs for an app that runs specs is a little bit of a mind bender. :-) I'd be happy to help put the spit and polish on (figuratively). -M On 6/27/07, Geoffrey Grosenbach wrote: > > On 6/27/07, Joshua Schairbaum wrote: > > > I can't get fixtures to load correctly in a Mosquito test. The first > > fixture loads in the unit test, but the rest don't load at all. > > I haven't touched Mosquito in a while. I've actually hacked out a > simple BDD library for Camping using RSpec, but haven't polished it up > for release yet. > > -- > Geoffrey Grosenbach > ........................ > Screencast | http://peepcode.com > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > From boss at topfunky.com Thu Jun 28 13:01:26 2007 From: boss at topfunky.com (Geoffrey Grosenbach) Date: Thu, 28 Jun 2007 10:01:26 -0700 Subject: Mosquito Fixtures Won't Load In-Reply-To: <3db8a8970706271907u7c5a10dsba975b7c84352b49@mail.gmail.com> References: <7408e5820706271210y128ea91aq3cb48650299246a9@mail.gmail.com> <15754f7e0706271403o40541195ke3f0aa3bd5469e01@mail.gmail.com> <3db8a8970706271907u7c5a10dsba975b7c84352b49@mail.gmail.com> Message-ID: <15754f7e0706281001j613841fbu66741b51941c156e@mail.gmail.com> On 6/27/07, Mark Fredrickson wrote: > I'd be interested in seeing your RSpec work. > > I'd be happy to help put the spit and polish on (figuratively). Here's as far as I've gotten so far: http://svn.topfunky.com/public/camping/thief/spec/thief_spec.rb -- Geoffrey Grosenbach ........................ Screencast | http://peepcode.com