April 2012
16 posts
Ruby: "&&" and "||" > "and" and "or"  →
Who knew!!
Apr 30th
6 tags
More on RSpec and Rake
Here’s a simple way to specify load order using rake and rspec… With files: RSpec::Core::RakeTask.new(:spec) do |task| task.pattern = [ "./spec/fileone_spec.rb", "./spec/filetwo_spec.rb" ] end With directories: RSpec::Core::RakeTask.new(:spec) do |task| task.pattern = [ "./spec/dirone", "./spec/dirtwo" ] end
Apr 24th
RSpec2 and Rake →
I was looking for the following and found it here… require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) task :default => :spec
Apr 17th
4 tags
rSpec -- testing protected and private methods
Add the following to the top of your _spec file… before(:each) do MyClass.send(:public, *MyClass.protected_instance_methods) MyClass.send(:public, *MyClass.private_instance_methods) end EOM
Apr 17th
3 tags
Apr 16th
2 notes
Apr 16th
Apr 15th
3 notes
3 tags
Apr 14th
2 notes
3 tags
Apr 14th
3 notes
Apr 12th
60 notes
Apr 9th
17 notes
2 tags
[PMV] My Little Wu-Tang Clan - Shame on a Nigga →
That last pic of my daughter fondly made me think of this vid.
Apr 9th
Apr 9th
Apr 9th
Apr 9th
Apr 2nd
71,493 notes