Displaying 20 results from an estimated 90000 matches similar to: "plugin tests"
2009 Jul 06
8
how to make ZenTest autotest run whenever my tests change
Railsters:
Despite Rails being the only Web platform designed for TDD, a lot of its test
infrastructure is still "cargo cult" - imitating other test rigs instead of
understanding their principles.
Most importantly, tests should run instantly. There''s no excuse for breaking
this rule, and if you invent a platform that can''t obey it then you are doing
something
2006 Sep 26
0
Code coverage of a rails plugin
Guys
I''ve been struggling with this one for a couple of hours, and nothing
seems to work here, any advice would be duly appreciated...
Background: I''m busy working on a plugin called "shared_models",
allowing you to easily share models between different applications,
running different database or on the same database. The plugin is
nearly complete, offering a
2007 Feb 07
0
strange sqlite3 errors - validates_associated & failing activerecord unit tests
I''m getting two strange errors, both which I believe relate to sqlite3.
The first one is with validates associated. Here is my test:
require File.dirname(__FILE__) + ''/../test_helper''
class SubscriptionPlanTest < Test::Unit::TestCase
fixtures :subscription_plans
fixtures :publications
def setup
@six_month_gold = subscription_plans(:six_month_gold)
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 Jan 23
1
ssl_requirement plugin: how do I override ssl_required?
The ssl_requirement plugin indicates that I can override the
ssl_required? method. I want to use this facility to ignore the ssl
requirement declarations when RAILS_ENV is anything other than
''production''.
My question is, where do I override this?
The relevant readme is:
http://dev.rubyonrails.org/browser/plugins/ssl_requirement/README
Also, does this plugin work with a
2007 Jul 25
3
autotest + integration testing (follow_redirect!) error
I''ve got an interesting (possibly) problem right now between autotest
and rails integration tests. There are a few things to preface this
with.
Works fine:
rake test
rake test:integration
Blows up:
autotest
Autotest is correctly determining rails and runs tests just fine. One
part of the behavior is that if I save a change in just the
integration test (even hitting cmd+s to trigger a
2008 Feb 15
3
Ugly, garbled output from autotest
I am getting this horribly ugly output from autotest when a test fails.
Normal output from ''rake test'':
--
1) Failure:
test_export_format(TaskTest) [./test/unit/task_test.rb:61]:
<"Michael Alvarez"> expected but was
<nil>.
--
Same failure, as seen via autotest:
--
1) Failure:
test_export_format(TaskTest) [./test/unit/task_test.rb:61]:
---
2008 Mar 20
1
Combining autotest, rspec, rspec_on_rails and spec-server
Hello,
I''ve been trying to google the definitive way to combine autotest,
rspec, and spec-server, but to no avail. It seems like there are lots
of suggestions from old versions. Furthermore, some commands such as
rake:autotest don''t seem to be around anymore.
So, is it required to install ZenTest as a gem? I have version 3.9.1.
I believe this gets me the autotest
2006 Oct 12
2
Test should fail !
Hello, a very strange thing is happening : the test below pass but it
should fail
I had a syntax error which produced an exception in the browser and http
500 in the script/console (using app.get ''/'')
But with rake test:functionals it passes - How is it possible ? Of
course this file is really executed by the test suite, I can see it in
the screen output of rake
Which
2009 Jan 22
0
script/plugin and polluted(?) sources
I recently had trouble installing the ssl_requirement plugin.
script/plugin said it couldn''t find ssl_requirement.
I "solved" this by running "script/plugin discover" and accepting the
addition of a bunch of other repositories. The script could then
discover and install ssl_requirement.
BUT: It wasn''t the same version of ssl_requirement that I''d
2008 Dec 03
5
How to test a plugin
Guys,
I''ve created a plugin, i wanna put my automated test there.
However, I got bad file descriptor error when i run the test like normal
unit test file:
"ruby plugins/acts_as_fox/test/acts_as_fox_test.rb"
How to test a plugin?
Also, is it right to say that I should only put my unit tests (but not
functional test for example) for the plugin in the plugin test folder?
2009 Apr 06
3
After Rails 2.3.2 upgrade: superclass mismatch for class TestCase (TypeError)
I upgraded a working app from rails 2.1 to 2.3.2. Now when I run rake
test:units I get this error: /usr/lib/ruby/gems/1.8/gems/
activesupport-2.3.2/lib/active_support/test_case.rb:17: superclass
mismatch for class TestCase (TypeError)
I generated a new test app and all tests run OK.
For the upgrade I ran rake:update and renamed the class in test_helper
to ActiveSupport::TestCase. Also renamed
2007 Apr 01
4
rake w/rspec
How can I spec out a rake task?
How can I use rake in my spec''s? I want to fix this rake
spec:autotest bug with --drb and --color. How can I get rake output?
How would I get out of autotest? My initial thought is just to run
the command in the spec.
Scott
2009 May 12
2
rails 2.3.2 is not generating environment.rb properly
problem: rails 2.3.2 is not generating
config.action_controller.session_store = :active_record_store in
environment.rb
this is the code in environment.rb
---------------------------------------------------------------------------
# Be sure to restart your server when you modify this file
# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION =
2006 Jan 08
0
uninitialized constant Test
I recently upgraded to Rails 1.0 and started a new project. I''ve
started writing some tests, but when I run rake, I just get the
following...
Amnesia:~/Development/Rails/pog shad$ rake
(in /Users/shad/Development/Rails/pog)
/usr/bin/ruby -Ilib:test
"/usr/lib/ruby/gems/1.8/gems/rake-0.6.2/lib/rake/rake_test_loader.rb"
"test/unit/pog_test.rb"
2009 Mar 21
0
Problem running Rdoc from Rake in Rails 2.3
People,
I''m getting an error from Rake I''d like to debug. Here is a
screendump:
Fri Mar 20 23:28 /b/tmp/myfc23 maco$ rake doc:plugins:rspec
(in /b/tmp/myfc23)
rdoc -o doc/plugins/rspec --title ''Rspec Plugin Documentation'' --line-
numbers --inline-source --charset utf-8 -T html vendor/plugins/rspec/
lib/autotest/discover.rb
major-snip
95% [107/112]
2008 Oct 14
1
To all TextMate users that wants to run tests with cmd + r in Rails 2.1 and above.
Because the require ''test_helper'' at the top of all the tests is
relative now (it used to be something like require ''../test_helper''),
you can''t just run the file with ruby anymore. And running the file
with ruby is exactly what command + r does. Which means you can''t
easily run your tests from textmate.
The solution:
2009 Dec 02
0
uninitialized constant Rails in Tests only
Hi Guys,
I can start my server in development mode.
However, when I run rake test. I have the following errors:
config/environment.rb:4: uninitialized constant Rails (NameError)
from ./test/unit/../test_helper.rb:2:in `require''
from ./test/unit/../test_helper.rb:2
from test/unit/course_test.rb:1:in `require''
from test/unit/course_test.rb:1
Line 4 of environment.rb:
2006 Mar 02
2
Unit tests, salted hash login
Hello,
I am having some trouble running the unit tests for the salted has login
generator. I am a bit new to both ruby and rails so I am having a little
trouble deciphering the error message I get when running ''rake
test_units''. Up till the point where I try to run the unit tests I have
followed the quick start guide for the salted hash login generator
2008 Feb 06
1
RSpec 1.1.3 + ZenTest 3.9.1 + Rails 1.2.6 do NOT ignore folders ^vendor/*
Hi,
I just updated to the latest RSpec 1.1.3 + ZenTest 3.9.1.
I also have rspec 1.1.3 installed as a gem
When starting autotest with -v option, there is a lot of noise because
autotest does not ignore the vendor folder, the migrations, etc ...:
Dunno! vendor/plugins/acts_as_solr/solr/lib/jetty-util-6.1.3.jar
Dunno!