Displaying 20 results from an estimated 10000 matches similar to: "DB-less rspec_on_rails"
2010 Oct 25
2
Fail to load spec/rake/spectask
Hi!
I''m a newbie at Ruby. I''m trying to run rspec tests using rake. In my
rake file I include spec/rake/spectask.
It fails to load giving me the following message:
rake aborted!
no such file to load -- spec/rake/spectask
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in
`raw_load_rakefile''
I''m using version 1.8.7 of Ruby.
I have installed rake
2008 Jul 09
2
Can I get RSpec NOT to abort rake on failing specs?
At work we''ve got a rather complex app with both specs and tests. Our
default rake task runs all our our tests and specs. We''ve also got separate
rake tasks to run groups of tests and specs in the various subdirectories.
The default task simply lists all the individual tasks as pre-reqs.
We do a lot of branching and merging, so we really want to run all of the
tests and specs
2007 Mar 06
10
Windows rspec "gem install win32console"
Hi,
Hi I am trying to use RSPEC on windows and i keep getting the following
error
"You must gem install win32console to use colour on Windows"
I have installed this Gem but i am still getting the same error. The
file that error is coming from is:
C:\ruby\lib\ruby\gems\1.8\gems\rspec-0.8.2\lib\spec\runner\formatter\base_text_formatter.rb
Do i need to put this line of code in? Where
2007 Apr 09
7
RCov results seem to include the spec files
I saw the RCov page at http://rspec.rubyforge.org/tools/rcov.html and
decided to add it to my project. My rakefile looks like this:
require "rake"
require "spec/rake/spectask"
desc "Run all specs with RCov"
Spec::Rake::SpecTask.new("spec:rcov") do |t|
t.spec_files = FileList["spec/**/*_spec.rb"]
t.rcov = true
end
When I run rake spec:rcov,
2007 Feb 23
0
Using rspec_on_rails without a test
Looks like you can run rspec w/out hitting the database by doing the
following:
1. Setting up a new rake task which does not have db:test:prepare as
a dependency:
namespace :spec do
desc "Run the specs under spec/models without a database"
Spec::Rake::SpecTask.new(:models_no_db) do |t|
t.spec_opts = [''--options'',
2009 Feb 03
3
Rcov - Specifying rake tasks
I am trying to get a customized rcov rake task working. What I have so
far looks like this:
desc "Rcov code coverage reports"
require ''rcov/rcovtask''
require ''spec/rake/spectask''
require ''cucumber/rake/task''
task :rcov => "rcov:all"
namespace :rcov do
Rcov::RcovTask.new(:all) do
task :rcov =>
2007 Sep 04
7
Rake tasks getting in the way of edge (uses gem instead)
So I''d been running gem releases of rspec for the past several months,
and I installed edge rspec so that I can use Story Runner.
I''m running into a problem because I''ve got a couple rake tasks that
reference "spec/rake/raketask". If I try to run "rake spec" then it
pulls in the gem version instead of the plugin version. rake blows up
saying that
2009 Apr 22
1
Tests for my gem cannot find classes in gems lib directory ..
I am writing a gem and using RSpec to drive my development. However,
whenever I describe a class within the gems lib I get an uninitialized
constant error. I am placing my folder structure, spec.rake and first
spec below. I feel I must be missing something obvious.
Additionally, I did output the value of f in lib inclusion code and it
is traversing the lib folder correctly and I can
2007 Jun 15
1
Problems with RCov and Rails
Hey list,
I''m trying to use the rcov integration that rspec provides in my Rails
application. As per the documentation on the website, I''ve created
the following rake task:
lib/tasks/specs_with_rcov.rake:
require ''spec/rake/spectask''
desc "Run all specs with rcov"
Spec::Rake::SpecTask.new(''specs_with_rcov'') do |t|
t.rcov = true
2011 Jan 07
1
no such file to load -- spec/rake/spectask
I am sorry but it seems like this should be a simple answer.
when i run a any rake command i get the following error:
no such file to load -- spec/rake/spectask
i amusing bundler and have the latest rspec installed.
any idea? make dev tough when you can not do any rake tasks...
2007 Nov 21
6
failing rake task
I''m running rspec and rspec on rails in svn external so I am running
the latest version of the trunk. Recently the rake spec task started
braking the continuous integration server because the rake aborted. I
checked my local and it ran with the same behavior.. and all of the
devs on my team are now experiencing the same problem. All the spec''s
are passing, but the rake task is
2008 Sep 14
2
rake spec:rcov => [BUG] Segmentation fault ruby 1.8.6 (2007-09-24) [i386-mswin32]
i have a rails app that tests fine with "rake spec" but gets a
segmentation fault when "rake spec:rcov" is run.
i am on windows xp, ruby 1.8.6, rails 2.1.1, mysql 5
my app is at
http://github.com/scottnj/test_blog/tree/master
so maybe someone can try to replicate my error so i know if the
problem is with my code or something installed on my pc.
here is a copy of my shell
2007 May 10
1
RSpec 0.9.4
RSpec 0.9.4 has just been released. Gems haven''t rsync''ed around the
globe yet, so you might have to wait a few hours to install it.
The big news this time is Spec::Ui 0.2.0, which has been released
along with RSpec core. This RSpec extension gives you custom Watir
matchers (custom Selenium-RC matchers are not implemented yet).
Moreover, it comes with a custom KICK ASS formatter
2009 Mar 08
2
rspec 1.1.99.12, Rails 2.3.1, undefined method `rspec_options=''
Hi David, all:
I recently upgraded to Rails 2.3.1RC2 (Ubuntu 8.10, ruby 1.8.7
(2008-08-11 patchlevel 72) [i486-linux]) and have been dilligently
following the instructions for upgrading rspec and rspec-rails
according to: http://wiki.github.com/dchelimsky/rspec/rails-with-rspec-gems.
and when I run ''rake gem'' fails with error:
rake aborted!
undefined method
2007 Aug 10
3
Using rcov and ouput to screen
I''d like to output my rcov data to the screen in ascii instead of
html...is that possible using the rake spec:rcov command?
Also, is there somewhere that will allow me to search the mail
archives...I''m pretty sure someone else has asked similar questions.
Thanks for the help.
Mike B.
----------------------------------------------------------------
This message was sent
2007 Jan 05
6
RSpec 0.7.5 with Rails and rcov
I seem to be missing something because I am at a loss on how to get
rcov, RSpec, and Rails working together. Would someone mind dropping
some hints?
2010 Jun 02
5
Programmatically counting RSpec tests?
If I have an object `obj` that is a SpecTask, and subsequently invoke
it, is there a way to programmatically determine the number of tests
that were successful, failed, and pending as a result of running that
SpecTask?
--
John Feminella
Principal Consultant, Distilled Brilliance
2007 Nov 25
15
Possible Problem with RSpec and
Sorry to be such a pest but I am trying to learn Ruby, Rails and RSpec all
at one go and it is a bit overwhelming. I have previously completed the
depot tutorial in the Agile Web Dev with rails book and now I am trying do
do it again using RSpec.
What I would like to know now is why I am getting a rake failure error at
the end of every spec:models run. Is this the expected behaviour when a
test
2006 Jun 10
2
readline problems
I get the following error:
rake test_units --trace
** Invoke test_units (first_time)
** Invoke test:units (first_time)
** Invoke db:test:prepare (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:test:prepare
** Invoke db:test:clone (first_time)
** Invoke db:schema:dump (first_time)
** Invoke environment
** Execute db:schema:dump
** Execute db:test:clone
**
2006 Dec 07
3
Newbie Error Running specs
I''m new to rspec. I just installed these:
rspec (0.7.4) RSpec-0.7.4 (r1201) (rspec gem)
rspec_on_rails .3 plugin (on vendor/plugin)
I''ve set up a simple spec - spec/library/test_spec.rb:
require File.dirname(__FILE__) + ''/../spec_helper''
context "test context" do
setup do
#nothing
end
specify "nothing to specify" do