Skip to content

Instantly share code, notes, and snippets.

$ ruby ~/Desktop/test.rb
Active Record 3.0.10
-- create_table(:foos)
-> 0.6120s
-- create_table(:bars)
-> 0.0008s
size: 0
count: 0
length: 0
gem 'rails', '3.1.1.rc2'
require 'active_record'
puts "Active Record #{ActiveRecord::VERSION::STRING}"
ActiveRecord::Base.establish_connection(
:adapter => 'sqlite3',
:database => ':memory:'
)
$ bundle exec rspec spec/integration/
..............................................................................F..................................................................................................................................................................................................................................................................................................................................................................................................
Failures:
1) Capybara::Session with poltergeist driver it should behave like session it should behave like check#check unchecking should not change an already unchecked checkbox
Failure/Error: @session.uncheck('form_pets_cat')
Capybara::Poltergeist::DeadClient:
The PhantomJS client died while processing {"name":"visible","args":[1]}
Shared Example Group: "check" called from
page = require('webpage').create()
page.content =
"<html>
<body>
<div id='foo' style='width: 100px; height: 400px;'></div>
</body>
</html>"
page.onConsoleMessage = (message) ->
#!/usr/bin/env ruby
# Used to convert Rails CHANGELOGs to Markdown format.
# Usage: convert_changelog_to_markdown.rb CHANGELOG > CHANGELOG.md
text = File.read(ARGV[0])
processed = ''
def fixup_line(line)
conversions = {}
Encoding.list.each do |from|
Encoding.list.each do |to|
if from != to
begin
Encoding::Converter.new(from, to)
rescue Encoding::ConverterNotFoundError
else
conversions[from.to_s] ||= []
$ gdb /usr/local/bin/ruby
GNU gdb (GDB) Fedora (7.3.1-45.fc15)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...

I need to find out if this bug [http://redmine.ruby-lang.org/issues/5564] is reproducible on a platform other than Linux. (I suspect it is, but want to check.)

You need:

  1. A Mac or Windows
  2. The Rails test suite / repo set up on your computer
  3. ruby-1.9.3p0

Here's what to do:

*** glibc detected *** /home/turnip/bin/phantomjs: malloc(): memory corruption: 0x00007ffff0404010 ***
[Thread 0x7fffeb799700 (LWP 16393) exited]
^C
Program received signal SIGINT, Interrupt.
__lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:100
100 2: movl %edx, %eax
(gdb) bt
#0 __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:100
class A
def foo
"lol"
end
end
class B < A
def self.add_foo
define_method :foo do
super