Displaying 20 results from an estimated 900 matches similar to: "Noob Rails patcher - problems running the sqlite3 tests..."
2012 Jul 17
1
AR deprecated finders
Hi all,
I had troubles while running tests on Active Record:
bundle exec rake test_sqlite3
/Users/oscardelben/code/rails/activesupport/lib/active_support/core_ext/hash/keys.rb:70:in `block in assert_valid_keys'': Unknown key: extend (ArgumentError)
This is because some models used by tests are using the extend option which now seems deprecated.
Should related tests be
2012 Feb 27
0
Rails 3.1 and SQLite3
I am getting this message when running my tests against RoR-3.1
.rvm/gems/ruby-1.8.7-p352/gems/activerecord-3.1.1/lib/active_record/
connection_adapters/abstract/connection_specification.rb:71:in
`establish_connection'': Please install the sqlite3 adapter: `gem
install activerecord-sqlite3-adapter` (sqlite3 is not part of the
bundle. Add it to Gemfile.)
However, I already have this in my
2011 Nov 07
2
Problem with Rails3.1.1 in mass_assignment_authorizer
By accident I had Rails-3.1.1 installed by bundler. However, when I
discovered this mishap during my feature run I encountered this error
in many places:
wrong number of arguments (1 for 0) (ArgumentError)
/home/byrnejb/.rvm/gems/ruby-1.8.7-p352/gems/activemodel-3.1.1/
lib/active_model/mass_assignment_security.rb:209:in
`mass_assignment_authorizer''
2011 Jul 14
0
ruby-1.8.7 + mysql-5.1.58 = Mysql::Error: #08S01Bad handshake
The issue:
ruby-1.8.7 (compiled from src, not rpm) can''t connect to mysql-5.1.58:
"Mysql::Error: #08S01Bad handshake"
Environment:
Linux Fedora Core 12 (or 14, does not matter)
remote database server (different host) mysql-5.1.58
Ruby 1.8.7:
wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p352.tar.gz
tar -xzvf ruby-1.8.7-p352.tar.gz
cd ruby-1.8.7-p352
./configure
2011 Sep 16
1
Latest Wine 1.3.28 breaks Rift patcher
updated to newest Wine and now i get critical error when starting Rift MMO.
2011 Nov 22
7
rake aborted with ruby on rails
when i run * rake db:create*
*
*
WARNING: ''require ''rake/rdoctask'''' is deprecated. Please use ''require
''rdoc/task'' (in RDoc 2.4.2+)'' instead.
at
/home/vishnu/.rvm/gems/ruby-1.8.7-p352-D9TI4Ms3gBgeRYYz77F+sQ@public.gmane.org/gems/rake-0.9.2.2/lib/rake/rdoctask.rb
DEPRECATION WARNING: Rake tasks in
2004 Mar 03
3
FreeBSD source auto patcher script
Hi all
I thought I would let you people know of a script that I coded that
facilitates security patch updating on FreeBSD. When I wrote it I
decided to called it Quickpatch for some reason even though because its
source based its not necessarily the least bit quick at all :) I had
kept it for my self for a while but I was recently provoked to release
it as it could do greater good being out
2006 Feb 01
4
Red Hat and "use sendfile"
Recently I've seen several suggestions on this list for the enabling of "use
sendfile" as a means to improve throughput. I thought this was peculiar
since the doc says it is enabled by default. I guess it isn't.
On both RHEL4 (Samba v3.0.10) and Fedora Core 4 (Samba v3.0.14) the entry
for "use sendfile" in the smb.conf says:
Default: use sendfile = yes
Hmm.
2010 Sep 17
3
How to create a project with an older version of rails
Hi,
I have installed Rails 3 on my local machine. Let''s say I wan''t to
create a new project but in version 2.3.5, can I do that?
Greg
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2007 Aug 21
7
mocking singletons
How can I safely mock a singleton without the mocked method living on
outside the scope of the test method?
I''ve run into this problem with mocking methods on globals (gasp!) in
the past by doing something like
def mock_my_global
original = $my_global
$my_global.expects(:foo).returns(''bar'')
yield
$my_global = original
end
Is there something similar I
2005 Feb 04
1
A smbd process pegging CPU at near 100% with v3.0.10-1FC2 RPM
Maybe it's stuck in a library call loop. Try ltrace -p 2170 -f -o
smbd.2170.ltrace.out
-Marc
> -----Original Message-----
> From: Kel Way [mailto:kpwspam-samba@yahoo.com]
> Sent: Friday, February 04, 2005 9:06 AM
> To: Denis Vlasenko; samba@lists.samba.org
> Subject: Re: [Samba] A smbd process pegging CPU at near 100% with
v3.0.10-
> 1FC2 RPM
>
> > strace -p
2011 Mar 22
3
Rails 3.0.6 ETA?
Hello,
Is there some Rails 3.0.6 ETA? I am asking because there are some
security holes in Rails 3.0.3, which are currently available in Fedora
15. So is it right time to update Rails to 3.0.5 or is it worth of
waiting for 3.0.6?
Vit
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to
2008 Jan 10
21
Shoulda
Hey, we''re currently using shoulda (http://dev.thoughtbot.com/
shoulda/) on a project and I saw some things that would be really nice
to see in rspec, namely the should_ methods, and especially the
should_be_restful method. Do these go against the rspec goals at
all? Or could an ambitious programmer go to town implementing these
for rspec_on_rails?
Nathan Sutton
fowlduck at
2007 Oct 25
4
Insure a method is called with no arguments.
We''ve been working with the ParameterMatchers (so cool!) but I don''t
see a way to insure a method is called with no arguments.
I imagined something like:
user = mock(''User'')
user.expects(:friends).with(nothing)
Anyone run into this?
2007 Dec 21
4
StoryRunner docs/guidance
Hi all,
Are there any plans for better documentation for the new StoryRunner
feature? I tried to use it today (with Rails), and had a hard time
getting my head around whether I was doing it "right" and exactly what
things are appropriate to test at that level (this might be exacerbated
by the fact that I''ve never really used integration testing that much).
A full example of
2005 Mar 13
2
Samba3 in W2k AD, W98 clients need password for Samba share
Hello everybody,
I've setup a file server with Debian GNU/Linux (Sarge) and Samba v3.0.10
with ACL, Kerberos etc... so I can join the Windows 2000 domain. I can
use users from domain on file server without problems and Windows 2000,
XP clients can access Samba shares.
But when I try to connect to \\fs from Windows 98 client (in domain) it
requests password from me (\\fs\IPC$). I have
2006 Jun 15
6
Sqlite3 test fails in Rails app
Greetings:
I am using Sqlite3 database with my Rails app. When I try and run "rake
tests" for the app it always fails with the error:
** Invoke default (first_time)
** Invoke test (first_time)
** Execute test
** Invoke test:units (first_time)
** Invoke db:test:prepare (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:test:prepare
** Invoke
2007 Jun 17
2
Testing a call to super
Hi,
Is there or could there be any way to test that a method calls "super"?
Thanks
--
Jonathan Leighton, Web Developer
http://jonathanleighton.com/
2011 Feb 11
11
CSRF protection in rails 2.3.11
Hi all,
I think CSFR protection broke in rails 2.3.11.
As in: it''s turned off now.
I tried this in rails 2.3.10 and in 2.3.11 and 2.3.11 seems broken.
>rails csrftest
>cd csrftest
>script/generate scaffold post title:string
>rake db:migrate
now I visit /posts/new in my browser, use firebug to delete or change
the authenticity token, and submit the form.
rails 2.3.11: all
2011 Oct 18
8
rspec 1.3.2, Rails 2.3.14 - plugins not loading
Hi there
I have a weird situation. I have inherited a project in Rails 1.2.3
that has been upgraded to Rails 2.3.14 (and is running). I have
installed Cucumber and Rspec to start to write features/tests for the
new code that needs to be written. In my Gemfile, these Gems are
loaded:
group :test do
gem ''rspec-rails'', ''~> 1.3.4'', :require =>