Displaying 20 results from an estimated 10000 matches similar to: "Having some trouble with rspec on rails."
2007 May 18
1
problems with textmate and rspec bundle
Folks,
I saw David''s tutorial yesterday at RailsConf and started working on
RSpec lastnight and am having a *ton* of trouble with the bundle for
TextMate. I''ve made *some* progress, but thought I''d throw it to the
list
* I run ruby, including rb-rubygems using the MacPorts install (per
JDD''s Sandboxing Rails)
* installed rspec 0.9.4 (also rcov 0.8.0.2 and
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 May 17
0
strange results when using rcov with rspec
I have some specs tucked away inside my vendor/plugins directory that
I want to run when I run rake spec.
I''ve got the rake task working just fine, but for some reason rcov
seems to choke when I try to tweak the included/excluded files to
ignore any files in app/ but to include files in vendor/plugins/
plugin/app/**
The error I get is this:
No file to analyze was found. All the
2008 Sep 13
3
RCov / RSpec segfaults on Ubuntu
Hi all,
I appreciate that this is not an RSpec question, but I wondered if
anyone out there can offer some pointers. We''re using the latest
versions of RSpec and RCov, and ruby --version says this (on the
Ubuntu build server):
ruby 1.8.6 (2008-07-17 patchlevel 279) [x86_64-linux]
We''re getting intermittent (yes, intermittent!) segfaults from the
build when running
2010 Sep 21
3
RSpec beta 22 with Rails 3
I am working on a Rails 3 application. Recently bundler got an update for
rspec, which upgraded it to 22, (previously we were using beta 20).
After the update we are unable to run the old using ''rake spec:rcov'', while
running with ''rake spec'' is running fine.
When you do rake spec it does not give any output and finishes the task.
something like below :
$ rake
2007 May 11
1
[Somewhat OT] Integrating RSpec and RCov results in Gem''s RDoc
I have a Gem on which the testing is done with RSpec. I would like to
include the results of RSpec and the RCov html files in the RDoc.
The problem is that when I have RDoc include the files, it winds up
escaping all the html. Is there a way to get HTML into RDoc
unprocessed? Or is there some other way I can distribute the RSpec/RCov
results with my Gem integrated with RDoc? I can include
2007 Nov 26
0
rSpec (rev 2996), Rails (rev 8214): TextMate bundle problems
Hey guys,
I''m trying to get rSpec (rev 2996) working with Rails 2 (rev 8214).
Running the tests from the command line works, no problem.
I installed the RSpec.tmbundle (also rev 2996), and would like to see
the HTML test results in TextMate. When I run the "Run examples in
selected files/directories" command in TextMate, I get the following
dump:
2009 Mar 07
2
[rspec/tm] When running the textmate bundle hook using command-r I get an error about missing rubygems
I get the following error using both edge version of the TM bundle and
rspec/rspec-rails in vendor/plugins.
/Users/nshb/Library/Application Support/TextMate/Bundles/
RSpec.tmbundle/Support/lib/spec/mate.rb:2:in `require'': No such file
to load -- rubygems (LoadError) from /Users/nshb/Library/Application
Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/mate.rb:2
from
2007 Oct 15
1
TextMate File Type Detection for RSpec & Rails
For those of you struggling with TextMate not properly detecting
rspec files, Allan Odgaard (the author of TextMate) has kindly
provided a tutorial on how to set up TextMate to associate all .rb
files with rails and all _spec.rb files with rspec.
http://macromates.com/blog/2007/file-type-detection-rspec-rails
His instructions work great and switching between rspec and rails
files has
2009 Feb 02
12
[RSpec] rcov and/or rexml bug?
Hi,
Running: Ruby 1.8.7 p72, RSpec 1.1.12 and rcov 0.8.1.2.0, I get the
following error message with $ rake spec:rcov
--
/usr/local/ruby1.8.7//lib/ruby/1.8/rexml/formatters/pretty.rb:131:in
`[]'': no implicit conversion from nil to integer (TypeError)
from
/usr/local/ruby1.8.7//lib/ruby/1.8/rexml/formatters/pretty.rb:131:in
`wrap''
from
2008 May 10
4
Problems running RSpec from w/in TextMate
Hello everyone, I''m new to RSpec, and pretty much Ruby in general. I am
trying to run RSpec from within TextMate to get the nice-looking GUI
that lists my specs and whatnot. It runs fine from the command line,
but when I run it from TextMate, I get the following error (I am working
with a Rails application):
RubyMate r8136 running Ruby r1.8.6 (/usr/local/bin/ruby)
>>>
2011 May 19
0
rspec-core-2.6.1 is released!
rspec-core-2.6.1 is released!
This is a bug fix release, restoring integration with with rcov.
full changelog: http://github.com/rspec/rspec-core/compare/v2.6.0...v2.6.1
* Bug fixes
* Don''t extend nil when filters are nil
* `require ''rspec/autorun''` when running rcov.
2007 Jun 14
4
Can''t run RSpec files in TextMate
Hi
Not sure if this is the place to ask this or not. I''ve upgraded to
RSpec 1.0.5, installed the latest TextMate bundle, but whenever I do
"Run Behaviour Descriptions in selected files/directories" I get this:
/Users/ashleymoran/Library/Application Support/TextMate/Pristine Copy/
Bundles/RSpec.tmbundle/Support/lib/spec_mate.rb:18:in `run_files'':
private method
2007 Jun 12
3
rspec 1.0.x and liquid?
Is anyone else using liquid with the > 1 rspec? This seems to fail:
it ''should render show'' do
response.should render_template(''buyers/show'')
get :show, :id => 1
end
with an error like
1)
NoMethodError in ''/buyer GET should render show''
You have a nil object when you didn''t expect it!
The error occurred
2008 Jun 07
2
rcov causing a segmentation fault on rspec 1.1.4 and rails 2.1
Hello again :)
I''m trying to run rcov on my specs here but i''m getting a lot of
segmentation faults (and they usually happen at different places):
/home/mauricio/NetBeansProjects/reeds/vendor/rails/activerecord/lib/active_record/attribute_methods.rb:211:
[BUG] Segmentation fault ruby 1.8.6 (2007-09-24) [i486-linux]
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 Oct 05
2
Rails, rSpec edge problems
Hi,
Does the Story Runner work on edge rails? I thought that is what the
example app was using but I am on the latest Rails and latest rSpec
revisions and I am having problems. When I call ''render_template'' in a
story I get the following:
NoMethodError: undefined method `render_template'' for
#<ActionController::Integration::Session:0x327d974>
Do I need to
2007 Jun 14
1
rspec will_paginate
Hi Rspec-Users,
I''m not sure if I am correctly specing my index since I''m using
will_paginate.
params[:filter_by] will filter the paginate list accordingly.
Tickets Controller:
def index
@tickets = Ticket.filter_status_by(params[:filter_by],params[:page])
end
Ticket Model:
def self.filter_status_by(status, page, per_page = 10)
conditions = {:status => false} if
2006 Dec 08
2
UJS plugin incompatible with RSpec?
Hi all,
Anyone using UJS with RSpec? I have the following view spec:
---- edit_spec.rb
context "accounts/edit" do
fixtures :users
setup do
assigns[:user] = users(:consumer)
end
specify "should display the user info to edit" do
render ''/accounts/edit''
end
end
---- end
that causes this exception:
---- exception
ActionView::TemplateError
2007 Sep 17
3
how do I get the beautiful html rspec results in textmate?
I''m going through PeepCode RSpec Basics and he gets a beautiful rspec
results page in html when he presses a hotkey in TextMate.
I would guess it''s along the lines of Apple + R but I don''t get the same
results and I''m using the same bundle.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: