Displaying 20 results from an estimated 200 matches similar to: "Solution for undefined method `use_transactional_fixtures=' ... problem"
2007 Jan 10
3
Rails 1.2.0 RC2 has 4125 duplicate lines
I have been evaluating the excellent and super fast Similarity Analyser
by Red Hill Consulting to generate a dupplicated lines reports from
Rails 1.2.0 RC2 source code (excluding the tests).
On the 10th of January 2007, Rails 1.2.0 RC2 has 4125 duplicate lines
in 793 blocks in 231 files
* actionmailer has 584 duplicate lines in 107 blocks in 20 files
* actionpack has 718 duplicate lines
2007 Jun 06
2
sharing my netvibes tab about rspec
Link was 404 :-(
the correct link is
http://21croissants.blogspot.com/2007/06/rspec-changes-log-rss.html
I should definitely switch from blogger to mephisto ...
Hi,
As I am not a big fan of mailing list, I have created a Yahoo!Pipes to
generate a RSS from the user & developpers mailing list and integrated it
into a netvibes tab. I have also put a few blogs from the rspec authors.
More
2007 Aug 31
3
Setting use_transactional_fixtures=false for a single spec - a bad idea?
Hi!
I would really like to find a way to allow me to write RSpec
specifications for code that use database transactions. I know I can set
config.use_transactional_fixtures = false
in my spec_helper.rb. That works, and that''s great, but it will (I
think) slow down my specs quite a bit. I would like to turn off
transactional fixtures for just a single spec (describe), or even
2006 Nov 04
0
use_transactional_fixtures= and Test::Rails
With a normal test_helper, everything works just fine. However, if I change
test_helper.rb to include test/rails and the class from Test::Unit::TestCase
to Test::Rails::TestCase, I get this:
./test/functional/../test_helper.rb:19: undefined method
`use_transactional_fixtures='' for Test::Rails::TestCase:Class
(NoMethodError)
from ./test/functional/contact_controller_test.rb:1
2006 Jun 28
2
undefined method `use_transactional_fixtures=''
Folks,
I checked my test_helper.rb and it has
self.use_transactional_fixtures = true
My code was generated with 1.1.2 and I''m using 1.1.3 right now after
but the error persists.
I googled for this issue and it appears that a require is missing or
something like that. I can''t figure it out, please help!
/opt/local/bin/ruby -Ilib:test
2008 Mar 14
2
Lib Specs and config.use_transactional_fixtures = true
Hi
We have specs in our rails project other than model/view/controller ..
we have interests and lib ...
using use_transactional_fixtures = true seems fine in a spec in the m/
v/c and interests directories but not in lib
Just wondered if anyone had any quick thoughts as to why that may be???
Shane Mingins
ELC Technologies (TM)
1921 State Street
Santa Barbara, CA 93101
Phone: +64 4 568
2011 Jan 14
4
Rails 3 / RSpec 2 use_transactional_fixtures and after_commit
We''re migrating a Rails 2.3.x application to Rails 3 and RSpec 2.x.
In Rails 2.3.x we were using
https://github.com/freelancing-god/after_commit to provide
after_commit functionality (now provided by Rails 3).
The plugin version of after_commit came with some helpers to make
testing with `use_transactional_fixtures = true` work.
From: https://github.com/freelancing-god/after_commit
2002 Nov 18
2
Boot problem: may you help me?
Hello!
I have a boot problem with ISOLinux 2.00, downloaded yesterday. The CD
works fine with every PC except on an IBM Thinkpad. If I poweron the TP and
try to boot from CD I get back a "isolinux: disk error 01, ax = 4211,8B".
Then, if I reboot (ctrl-alt-canc) your isolinux works fine.
May you help me?
--
Stefano Pettini
spettini at inwind.it
New ICQ number: 159144497
Notary of
2008 Jun 03
9
Build rspec-rails as a gem?
I can''t figure out how to build rspec-rails as a gem when just cloned
from github... there isn''t any .gemspec file or rake task that does
this. Any help?
--
Posted via http://www.ruby-forum.com/.
2008 Nov 03
4
cleaning user properties
I have a little question about user properties, I have two filesystems:
rpool/export/home/luca
and
rpool/export/home/luca/src
in this two I have one user property, setted with:
zfs set net.morettoni:test=xyz rpool/export/home/luca
zfs set net.morettoni:test=123 rpool/export/home/luca/src
now I need to *clear* (remove) the property from
rpool/export/home/luca/src filesystem, but if I use the
2006 Jun 01
3
Requiring /lib files in a cross-platform way.
Hi.
When you have library foo.rb in your Rails project /lib directory, I
notice that on some platforms - e.g. Windows with WEBrick as a server
- you can require it by simply:
require ''lib/foo''
However on other platforms - e.g. Debian with Lighttpd server via
FastCGI - this does not work, and you need to specify RAILS_ROOT
explicitly, like this:
require
2006 Apr 29
1
reloading include-modules inside controller not working
Hi guys,
I would expect an ActionController-derived class to reload _completely_ in
development mode.
class FooController < ApplicationController
include FancyStuffSupport
def index
# bla
end
# more actions here
end
However, the ''FancyStuffSupport'' is not reloaded, only the ''FooController''
itself. Can this behaviour be changed? I feel back
2005 Sep 27
2
caching in development mode
Hi, I created some new models that do not extend
ActiveRecord::Base. For some reason, these classes are being cached
in development mode. Controllers are not cached, neither are models
extending ActiveRecord::Base. Has anyone else seen this?
Here are my relevant development.rb settings:
Dependencies.mechanism = :load
2007 Dec 22
12
error when installing on jruby (fastthread dependency)
I''m running jruby trunk which has integrated rubygems 1.0.0 and when
I try and install mongrel with gem it blows up when the fastthread
dependency tries to do a native compilation.
I couldn''t find a copy of the gemspec in the svn checkout but looking
at the one installed when gem installing mongrel didn''t show any
platform differentiation. There is platform
2008 Nov 25
21
"mysql" 2.7.3 gem install for Windows appears incomplete
When I install the 2.7.3 "mysql" gem on Windows XP (trying to prepare
for the requirement to use the mysql gem in Rails 2.2.2) by using:
gem install mysql
I get a mysql-2.7.3-x86-mswin32 directory under gems, but underneath
that, only a docs directory, an ext directory, and README, Rakefile and
.require_paths.
I then cannot do any connecting to my MySQL databases.
Shouldn''t
2008 Apr 29
5
Sharing: dont_repeat_yourself plugin custom RSpec matcher
I wrote a Rails plugin which uses simian to look for duplicates lines in your
code and reports in html format, Textmate or Netbeans.
I wrote it using RSpec and I have included a RSpec custom matcher:
it { rails_application.
with_threshold_of_duplicate_lines(4).
should be_DRY }
If you use Autotest, your specs will fail the next time you do a nasty
copy-paste !!!
More details in
2004 Mar 14
3
Re: RubyGems 0.2.0
Hello Chad,
I installed and tried out rubygems for one of the win32-utils
projects named win32-mmap. This is on Win XP (Home).
Here is how I did it but got some errors (see at the end).
I must be doing something wrong.
Please help ...
-- Shashank
#------------------------------------------------------------
require ''rubygems''
spec = Gem::Specification.new do |s|
2005 Jul 07
3
NameError Exception
Ruby/Rails n00b here so go easy on me...
I''ve been wracking my brain trying to figure out what is wrong here.
I''ve checked all my models for the appropriate belongs_to, has_many,
etc. I''ve checked to make sure I''m using singular and plurals in the
right spot. I''ve checked my syntax around all my "within"''s and nothing
seems to fix
2004 Nov 04
4
Attempt to build a gemspec
Hi all,
I''m trying to build a gemspec for win32-ipc, using a precompiled binary.
Here''s my gemspec file:
#win32-ipc.gemspec
require "rubygems"
spec = Gem::Specification.new do |s|
s.name = "win32-ipc"
s.version = "0.3.1"
s.platform = Gem::Platform::WIN32
s.summary = "A base class for Win32 synchronization
objects."
2006 Apr 16
7
Problem running unit tests
I am running Rails 1.1.2 with Ruby 1.82-15. My database is Postgresql. I
haven''t had any problems generating models, migrations, using scaffolds, and
generally building and using my application, but I haven''t been able to get
testing to work. I initially just ignored the problem and kept developing,
but would like to add proper testing from here on out.
Currently when I type