- Ruby5 Podcast
- Ruby Show
- RoR Podcast
- http://www.sdruby.org/podcast
- http://rubyshow.com/
- ruby tapas (screencasts)
- codeschool TV
Also worth checking
Tech stuff around computer programming, basically for web development, especially opensource. Topics will go round Ruby on Rails (git gems etc.), Ubuntu (admin and basic shell) and work organization (agile philosophy)
# spec_helper.rb # this line will make rpsec end at the first failing test RSpec.configure do |c| c.fail_fast = true end
# in integration specs
# xpath can be copied from chrome, rx-click on the element (in the dev-tool)
page.should have_xpath("//a[contains(@href,'users')]"), count: num)
desc 'do not permanently write on the db (good for testing rake tasks)'
task :sandbox => :environment do
puts "** << USING SANDBOX!! >> **"
# beginning
ActiveRecord::Base.connection.increment_open_transactions
ActiveRecord::Base.connection.begin_db_transaction
# end
at_exit do
ActiveRecord::Base.connection.rollback_db_transaction
ActiveRecord::Base.connection.decrement_open_transactions
end
end
postgres: &postgres adapter: postgresql encoding: unicode host: localhost username: netengine password: development: <<: *postgres database: propertyconnect_development test: <<: *postgres database: propertyconnect_test
module MainMod
module SubMod
def self.included(cls)
puts "#{self} included in #{cls}"
cls.extend ClassMethods
end
module ClassMethods
def ext
puts 'extended'
end
end
def inc
puts 'included'
end
end
end
class A
include MainMod::SubMod # => MainMod::SubMod included in A
end
A.new.inc
A.ext
module Mod1
inc MainMod::SubMod
end
class B
inc Mod1 # => MainMod::SubMod included in Mod1 !!!(Mod1)
end
B.new.inc
# B.ext # does not exists, `ext` was extended on Mod1
Waiting for ie, at least 7, but ideally all of them, to die