Re: [rspec-users] Trying to fix NullDB for Rails3/RSpec2.5.1

2011-04-23 Thread Matthew Van Horn
On Apr 23, 2011, at 11:45 AM, David Chelimsky wrote: > On Apr 23, 2011, at 10:26 AM, Matthew Van Horn wrote: > >> On Apr 23, 2011, at 10:40 AM, Matthew Van Horn wrote: >> >>> def self.nullify_contextually?(other) >>> rspec_root = defined?(RSpec) ? RSpec : Spec >>> if defined? rspec_ro

Re: [rspec-users] Trying to fix NullDB for Rails3/RSpec2.5.1

2011-04-23 Thread David Chelimsky
On Apr 23, 2011, at 10:26 AM, Matthew Van Horn wrote: > On Apr 23, 2011, at 10:40 AM, Matthew Van Horn wrote: > >> def self.nullify_contextually?(other) >> rspec_root = defined?(RSpec) ? RSpec : Spec >> if defined? rspec_root::Rails::RailsExampleGroup >> other.ancestors.include?(r

Re: [rspec-users] Trying to fix NullDB for Rails3/RSpec2.5.1

2011-04-23 Thread Matthew Van Horn
On Apr 23, 2011, at 10:40 AM, Matthew Van Horn wrote: > def self.nullify_contextually?(other) > rspec_root = defined?(RSpec) ? RSpec : Spec > if defined? rspec_root::Rails::RailsExampleGroup > other.ancestors.include?(rspec_root::Rails::RailsExampleGroup) > else > other.a