similar to: Fwd: testing - test/spec and rspec

Displaying 20 results from an estimated 2000 matches similar to: "Fwd: testing - test/spec and rspec"

2007 May 08
2
Extending SuperRedCloth
Fellows of the cloth -- I''m writing code that subclasses RedCloth and emits styled text that is not HTML. For example, I''m going to be emitting RTF and other formats from Textile or Markdown. I''ve got it working quite well with plainclothed RedCloth, but I can''t seem to override any of the methods in SuperRedCloth. Here''s a sample:
2007 Mar 06
0
[PIMP] Topfunky''s httperf PeepCode screencast
Hey Everyone, Topfunky (Geoffry) has created a great PeepCode screencast on using httperf to performance measure your web applications: http://nubyonrails.topfunky.com/articles/2007/03/05/peepcode-page-caching-and-httperf http://peepcode.com/products/benchmarking-with-httperf Topfunky put a ton of work into this and really got it right. The attention to detail is very good and he researched
2007 Mar 06
4
[PIMP] Topfunky''s httperf PeepCode screencast (Zed A. Shaw)
Hi, Thanks Zed - this is very interesting. One item in particular caught my eye: Does anyone on this list have any comments or validation that Rails 1.2.1 is 2-4 times as slow as Rails 1.1.6? Topfunky provided a link that purports what looks like really horrible performance and memory characteristics for Rails 1.2.1, even v. 1.1.6:
2007 Jun 01
0
Thief, a Simple Camping App
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
2007 May 12
0
HAML?
Is anyone developing with HAML templates in Merb? I had to do a few hacks but got it generally working (Merb trunk). I did have to do odd things like print @_layout_content straight out instead of calling catch_content(:layout). And, templates seem to be cached even if I set :cache_templates to false in merb.yml. I hope to be at the MerbHack night at RailsConf and would love to hack on this part
2007 Jan 06
1
Camping Podcast
I''m putting together an episode of the Rails podcast that will be dedicated to Camping. I already have the first interview recorded. I''d like to get 3 or 4 more short interviews (short...maybe 4.096 minutes each). If you''d like instant fame, send me an email and tell me what camping project you would like to talk about, what your skype username is, and when is a good
2007 Sep 24
1
Mosquito TDD Framework Updated
Mosquito, the TDD framework for Camping has been updated (0.1.3). We''ve tried to keep it backwards compatible, so your apps should continue to work. But feel free to submit a bug report at RubyForge if you have any problems. Changes: http://rubyforge.org/frs/shownotes.php?group_id=351&release_id=14845 Download: http://rubyforge.org/projects/mosquito/ Docs:
2007 Jun 19
1
Plugin Requirements
I like the style of the Merb plugin manager....installing gems straight from RubyForge. However, the current implementation in trunk wants to find an install script and a Rakefile.merb. Many gems would still be useful without this and could be easily packaged with a Merb app for deployment. Right now it wil "rescue nil" if no uninstall script is found, but the others are required. Is
2007 Oct 13
1
Formatted Routes?
Is anyone using formats with the url generator in trunk? I can''t figure it out and it seems to be unimplemented in the router code. I want to do something like url(:articles, :format => "xml") # => /articles.xml or url(:formatted_articles, :format => "xml") -- Geoffrey Grosenbach ........................ PeepCode Screencasts http://peepcode.com
2007 Jun 19
0
Default 500 Error Page in Production
Currently, Merb just shows a string on error: "500 Internal Server Error" I''ve added this to my merb_init.rb: if MERB_ENV == ''production'' module Merb def self.html_exception(e) File.read(DIST_ROOT + "/public/500.html") end end end http://nubyonrails.com/500.html Potentially a plugin could be written to log this to the database.
2007 Jun 19
0
Default 500.html
Argh....ignore that last message. It looks like the trunk was already updated to serve public/500.html sometime in the past week. -- Geoffrey Grosenbach ........................ Blog | http://nubyonrails.com Podcast | http://podcast.rubyonrails.com Screencast | http://peepcode.com
2007 May 29
12
questions rspec on rails
Hi, rather than flooding this list with separate emails, I''ve been queueing up questions using rspec with rails. (an irc channel would be nice too :) Here ya go... - Is there a way to test named routes? - Could I get an example how to test an ajax request (link_to_remote)? would that go in view? and/or in controller spec? - Can you assert which layout template is rendered in a
2006 Mar 25
2
Rails Plugins: How to copy artefacts to the public directory during install? When is install.rb executed anyway?
Hi, I want to write a plugin that uses JavaScript and I am wondering how to put the static content, i.e. the JavaScript, in place? I read the documentation I found ( http://wiki.rubyonrails.org/rails/pages/Plugins and links) and looked at the listed plugins. One thing I found was that subversion seems to be a prerequisite for providing or even installing plugins. Is that right? The other thing
2007 Aug 08
3
rspec with autotest on a windows machine
Hello all, I''m new to rSpec but after reading a couple of tutorials I''ve become enamored. Anyway, I am at minute 42 of the rSpec basics screencast ( peepcode.com) and I''m having the following error running autotest w/rSpec: D:\ruby\projects\forecaster>autotest loading autotest/rails_rspec c:\ruby\bin\ruby -rrubygems -e "require ''redgreen''"
2007 Jun 27
5
Mosquito Fixtures Won''t Load
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''
2008 Jan 27
4
Rails versions and documentation, confused learning rails
Okay, I am new to rails. I see that the new release of rails does not apply to anything on the site with regards to tutorials including screencasts. What I don''t understand is how I am suppose to learn Rails 2.0 if there is no docmentation for it. I did see that on peepcode there is a pdf for what has changed but how does that help me? How do I get an understanding of the design
2007 May 04
22
CampingConf?
Campers -- In a few weeks there will be a bunch of people in Portland, OR, for a conference. A long time ago some campers mentioned that might be a good time for us to get together and hold a mini CampingConf for a few hours. Is anyone interested? Does anyone want to organize it? I''m thinking Wednesday night, May 16. We could possibly get a spot at FreeGeek (not likely since they are
2009 Mar 23
3
Spec::Rails, "model.should have(1).error_on(:attribute)" passes when?
Spec::Rails people, I''m curious about: - model.should have(1).error_on(:attribute) displayed in the URL below: http://rspec.rubyforge.org/rspec-rails/1.2.2/classes/Spec/Rails/Extensions/ActiveRecord/InstanceMethods.html The Rspec peepcode screencast suggests that model.should have(1).error_on(:attribute) should pass if model.send(:attribute) returns nil For me, I get an exception
2008 Jan 11
0
Peepcode RSpec User Stories
http://peepcode.com/products/rspec-user-stories Shane Mingins ELC Technologies (TM) 1921 State Street Santa Barbara, CA 93101 Phone: +64 4 568 6684 Mobile: +64 21 435 586 Email: smingins at elctech.com AIM: ShaneMingins Skype: shane.mingins (866) 863-7365 Tel - Santa Barbara Office (866) 893-1902 Fax - Santa Barbara Office +44 020 7504 1346 Tel - London Office +44 020 7504 1347 Fax -
2007 Jul 16
4
RSpec - concerns about mocking
I''m getting into RSpec more after getting the awesome Peepcode screencast about it. So far I love it, but coming form Test::Unit with Rails, I have some concerns about the recommendation to mock models and database calls in controller and view specs. Lets say you have a method on your User model called User.find_activated, and you have models specs for it. Then in your controller specs