Displaying 20 results from an estimated 10000 matches similar to: "rake default(?)/test_unit magic"
2006 Feb 26
0
using rake test_unit on Bitkeeper repository
Hi,
I''m writing an RoR application on a source-control system Bitkeeper.
for each source file yyy.zzz in Directory XXX it saves a file called
x.yyy.zzz in subdirectory XXX/SCCS.
when I try to run ''rake test_unit'' it also tries to execute the files of
the bitkeeper as unit tests, which of course fails.
Is there a way to tell rake to skip all the files in the SCCS
2006 Mar 01
0
rake test_unit from controller
I was just thinking it might be nice to run rake test_units from a
controller and put the outputs into the browser. I like the original
green or red bar.
I figure someone must have done this but a quick search turned up
nothing.
Any ideas?
Gareth
--
Posted via http://www.ruby-forum.com/.
2007 Jul 19
1
stopping on first failure
Hi!
Is there an option that I could provide to the spec runner that would
make it stop after it
encounters the first spec that fails?
Esad
2007 Feb 13
3
"should.be_in [values]" and "each_should_satisfy"
Hi!
I just started using RSpec and have some question that I couldn''t find
answers to.
If I have a result that can have two valid values, is there a better way
of writing
the following assertion?
[value1,value2].should_include actual
Is there a more elegant way of performing should_satisfy on a
collection, for
example I currently use something like collection.each {|x|
2006 May 08
4
rake db:migrate
Would it make sense for rake db:migrate to support creating databases if
it is not found, with blessing from user to prevent typos, or as an
additional command line switch.
Or am I just being too lazy?
--
Posted via http://www.ruby-forum.com/.
2007 Oct 05
1
Rake & Story Runner
So, having gotten a story (i.e. Story Runner) working (runs in NetBeans and
using ''ruby path/to/story.rb''), I''m looking to see how I''d integrate that
with our build.
Am I right in assuming that there''s no Rake integration yet, or a report? I
couldn''t see any. As far as I can see, "rake spec" doesn''t run or report
on my
2008 Jan 08
2
Problems with rspec 1.1 required inside rake tasks
This is interesting.
The default rspec rake tasks generated by Hoe give you an rspec.rake
file that looks like:
> begin
> require ''spec''
> rescue LoadError
> require ''rubygems''
> require ''spec''
> end
>
So far so good.
When you invoke rake to do something, say check_manifest
> rake check_manifest
>
You
2008 Dec 01
1
Undefined method "full_description" when trying to run "rake spec"
Hello guys,
I''m getting this weird error when trying to run the specs using "rake spec":
/home/mauricio/NetBeansProjects/talkies/vendor/rails/actionpack/lib/action_controller/test_process.rb:471:in
`method_missing'': undefined method `full_description'' for
#<Spec::Rails::Example::ControllerExampleGroup::Subclass_73::Subclass_9:0x7f5fdca4a810>
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]
2007 Jul 26
0
rspec_on_rails magical incantations
I ran into something really puzzling today. I don''t know exactly why
it''s happening, but I thought I''d share my experiences.
I started a dummy app just to test an idea outside of the context of
my real work today. So, I quickly get things started:
* rails junk
* cd junk
* ruby script/plugin install svn://rubyforge.org/var/svn/rspec/tags/
CURRENT/rspec
* ruby
2006 May 07
1
rake test without database
Hi!
Is it possible to run unit tests when no database is configured?
Rails recipes mentions putting following piece of code in a file within
lib/tasks/
[:test_units,:test_functional,:recent].each do |name|
Rake::Task.lookup(name).prerequisites.clear
end
However this seem to be out-of-date, as task lookup in rake according to
RDoc is now done using Rake:Task[name]. But after I updated the
2008 Oct 22
3
Rake task vs script/runner
Hello, until now I allways used script/runner for running Rails cron
jobs
I wonder is there is any benefit (except not having any fake runner
model in the models directory) to use a rake task instead in lib/tasks
Thanks
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
2007 Nov 13
2
new to rspec, error running "rake rspec" on debian/etch
I have the latest version of rspec and rails-rspec installed. I''m using
the debian versions of ruby and rails. On a new project after a
generate an "rspec_model" and then try to run "rake spec", I get the
following error:
dan at dan-server:~/projects/cw/registration$ rake spec
(in /home/dan/projects/cw/registration)
2006 Feb 02
4
rake test_units slow on startup
Hi
Running ''rake test_units'' using the simple example from the intro video is
very slow on my computer. While the tests claim to execute in 0.17 secs,
the startup time ad 5.3 seconds to the overall job.
On the video, these tasks ran in about 1 second. (Maybe David was doing
the tests on a dual proc mac or did some video editing, who knows.)
But, I don''t think it should
2006 Jun 02
3
Wierdness with rake test_units and schema.rb
I have just migrated to use Rail 1.1 from 1.0.
In the progress of fixing and cleaning up the unit tests. I found the
following problem. I am not sure if this is a bug or it is my
environment.
When I run "rake test_units, some of the index in association tables is
not created, this leads to failures for some unit test cases.
Thinking that may be because I didn''t setup the
2006 Mar 01
5
single transaction migrations
Hi!
It seems that migration doesn''t use single transcation to execute the
needed migrations for the database upgrade, so if I have database at
version 5, and I wrote some migrations 6..10, and error occurs while
executing migration 7, the database stays in state 6?
I also think that migration taks could use some more verbosity, for
example if migration fails, there''s no
2007 Feb 20
1
having should_receive expectation for things that happen in setup
Hi!
The following example doesn''t work for me: http://pastie.caboo.se/41732
However, if the call to msg() happens in the specify block after the
expecation and not in the setup, it will pass.
Why is this? I thought the setup method was there to actually
''construct'' the context and the specifications are some kind of
"postconditions" that only need to be
2006 Jan 02
3
rake test_units not loading any fixtures
Hello All,
If I run my unit tests individually using Ruby, they all work correctly.
However, if I try to run them using "rake test_units", I get a bunch of
error messages.
The error messages appear to be caused by rake not loading any of the
fixtures into the test database.
I am using PostgreSQL on Windows.
Does anyone have any suggestions?
Many thanks,
Bruce.
--
Posted via
2007 Apr 04
1
pontential bug in rspec_on_rails and ActiveRecord transactions
Hello rspec-users,
I''ve encountered a strange bug in rspec, but it may be me who is wrong.
I''m running latest version from the trunk (r1678) of both rspec and
rspec_on_rails.
Please consider the following model:
class Url < ActiveRecord::Base
def after_save
Contact.create!(:primary_email => ''user at example.com'')
raise
2013 Feb 02
2
rake db:migrate problem
mini@mini:~/Sites/music_library$ rake db:migrate
rake aborted!
couldn''t parse YAML at line 28 column 6
/home/mini/my_gems/gems/railties-3.2.9/lib/rails/application/configuration.rb:115:in
`database_configuration''
/home/mini/my_gems/gems/activerecord-3.2.9/lib/active_record/railtie.rb:78:in
`block (2 levels) in <class:Railtie>''