search for: jspec

Displaying 4 results from an estimated 4 matches for "jspec".

Did you mean: spec
2010 Nov 06
2
Custom File List for Rails 3 Spec Task
I have some javascript specs (using the jspec javascript framework) in my rails 3 project, living in the spec/javascript directory. How can I exclude the ruby files in the jspec project from being run when I run "rake spec"? RSpec::Core::RakeTask used to take a file list (which was usually generated with a glob pattern and an expli...
2011 Jan 28
5
mysql quotation wonky
Why would, in an upgrade from 3.0.1 to 3.0.3, a rake db:migrate run this: SELECT "schema_migrations"."version" FROM "schema_migrations" vs this ? SELECT `schema_migrations`.`version` FROM `schema_migrations` __ rake db:migrate output __ rake aborted! Mysql::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
2007 Nov 17
7
Down with Lambda!!
Rspec is all about using natural language to define behavior. In this context, I feel that lambda is sorely out of place. I was chatting on #irc and a pal of mine (wycats) proposed an interesting alternative: alias_method :doing, :lambda so instead of something like lambda {post :create, {:title => nil}}.should raise_error(ActiveRecord::RecordInvalid) we get doing {post :create, {:title
2008 May 06
1
specifying output of render call
Hello again, First of all, thanks much for everyone''s input on my question last week about spec''ing an invocation of super. Here''s another question that seems resistant to my Google searching: With this helper method (defined in a module and included in Rails controllers): def render_rjs_redirect(url = ''/'') render :update do |page| page