Displaying 20 results from an estimated 500 matches similar to: "Something like rcov but more explicit?"
2007 Jul 25
5
MockCov: Proof of concept
Hey list,
RSpec is great, I''ve been using it at work for a couple of months now. One
gripe I have is that I find it hard to know exactly to what extent my code
is covered by the specs. I am aware of RCov and Heckle; they''re great, but
I''d like to demonstrate another perspective of coverage analysis I''ve hacked
up.
The perspective is that of what is mocked and
2007 Sep 10
6
RSpec view spec writing problem (unable to generate url_for in RESTful resource link_to)
Thanks, first, to everyone who''s asked and answered questions on this list,
and to the creators of RSpec - it is all very helpful. I''ve searched the
mailing list, and had a couple 2hr googling sessions that didn''t help me
find an answer.
I''ve run into a problem getting my first non-trivial view spec to run. I
get an error when trying to generate a link_to()
2007 Jun 21
4
should_receive stubs methods?
Hey,
I''m using rspec and rails and have a spec that tests if a before_filter is
executed, I also have a spec that tests if a method called by the filter is
executed. It appears however that when I should_receive something, it is no
longer actually called when I fire the http request. I''m not sure how, or
where exactly I should manually fire the filter, either before or after the
2007 Jul 12
3
Promoting options to heckle?
Hi,
I''m trying out RSpec with the heckle option (for mutation testing).
Problem is that heckle goes into an infinite loop when running it on an
example. I want to send a "--verbose" to heckle but can''t find a way to do
that through the spec binary. Since this is not an uncommon situation when
using heckle I would like this to be supported in some way by RSpec.
2007 Aug 15
8
Extra Options to Heckle
I''ve tried running Heckle with rspec on some of my classes, but keep
getting (what I believe to be) an infinite recursion. Is there some
way to supply extra options to heckle via. rspec?
Scott
2007 Jun 27
1
rspec_on_rails: assert_select wrapper doesn''t play nice with XML
Hey,
I''m using rspec and rspec_on_rails to test some RSS feed views, the problem
is that the specs spew out messy warnings when they run:
ignoring attempt to close channel with link
opened at byte 61, line 3
closed at byte 141, line 5
attributes at open: {}
text around open: "ss version=\"2.0\">\n <channel>\n <title"
text around close:
2007 Jun 22
11
Nicer failure message formatting
Hi
Are there any tools around that make rspec''s failure messages easier
to read?
unit_diff from ZenTest doesn''t seem to work - unless I missed something.
A simple but very helpful improvement would be to use more line-
breaks, e.g.
Current output:
expected "this is a very long string blah blah", got "this is a very
very long string blah blah" (using
2007 Nov 10
3
autometric gem
I''m working on tool to automatically run code metrics in the same way
as autotest. It''s runs rcov, flog, and saikuro right now, and works
with rspec and rails. It''s hosted at rubyforge:
http://rubyforge.org/projects/autometric/
I''ve got a post on how to configure it with growl:
http://benburkert.com/2007/11/9/introducing-autometric
I''m hoping
2007 Oct 31
16
Am I missing something with Heckle?
Hi
I can''t get heckle working. In fact, I''ve built an example so simple
that it either shows a bug, or I am being really, REALLY stupid.
Heckle does not appear to support RSpec directly, so I''m trying to use
spec --heckle (RSpec trunk as of 10 mins ago, Heckle 1.4.1). I''ve
constructed this pair of sample files:
18> ~/Desktop/heckle_test % cat
2007 Mar 20
1
submitting a patch
I''ve created a short patch so that spec.opts can use a single line
(or multiple lines for backwards compatibility) for options. I''ve
run the specs against spec:trunk
I have two questions:
1. I''ve run rake pre_commit, but after the specs are done running, I
get this error:
rake aborted!
ERROR while running webgen: /opt/local/lib/ruby/site_ruby/1.8/
2006 Dec 20
8
RSpec 0.7.5
The RSpec Development Team is pleased to announce the release of RSpec 0.7.5.
This release adds support for Heckle - Seattle''rb''s code mutation tool.
There are also several bug fixes to the RSpec core and the RSpec on
Rails plugin.
Changes: http://rspec.rubyforge.org/changes.html
Download: http://rubyforge.org/frs/?group_id=797
or
gem install rspec
Happy spec''ing,
2007 Jan 15
2
heckle and rspec on rails
Now that I''m developing a big suite of specs, I really want to run
Heckle and see how well I''ve done.
Using r1359, when I run:
spec spec/models/metadata_report_spec.rb --heckle MetadataReport
the result is just to run the specs once and then exit, as though I
hadn''t mentioned Heckle. I started looking though rspec to figure out
why, but it''s late, so I should
2010 Jul 15
1
Heckle & RSpec 2
How do I run Heckle with RSpec? I''ve tried rake spec --heckle but get
no output. I''ve tried just -heckle too, as mentioned in the docs, but
that isn''t accepted as a valid option and the help out is displayed.
I have both the heckle and rspec-rails gems in my Gemfile, and running
Rails 3, and have the latest beta version (at the time 17) installed.
Thanks.
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
2006 May 05
6
RJS implementation question
Why is RJS so dependant on programatic creation of Javascript?
RHTML is a great implementation in that it puts HTML first, and Ruby
second. I would have thought RJS would be the same way: a .js with ERb
helpers for generating Javascript functions.
RJS putting Javascript second means:
- I have to learn a whole new set of commands to use Scriptaculous.
- Developers have to constantly chase the
2009 Sep 09
2
InvalidArgumentError throw using Turkish stemmer and posting text "'leri"
Hi all,
I've come across a very strange bug with Xapian 1.0.9.0 and the Turkish
query parser when trying to index a string (as posting) that looks like
this: "...bir araya getiren CD'leri son teknolojiyle piyasaya...". The
actual offending bit of the string is: 'leri
It throws the message I have shown below. The real annoyance is that I can't
seem to catch it because it
2011 Jan 25
2
FW: question about the pt() calculation
From: Leitch, Matthew C.
Sent: Monday, January 24, 2011 6:53 PM
To: 'info at network-theory.co.uk'
Subject: question about the pt() calculation
Hello
Thank you for your time. I am a graduate student at the University of Texas Medical Branch, and I was wondering if you could help me with a R program I am writing. I have some data that is stored a file that has 1733 rows and 4 columns.
2007 Apr 12
15
Preview of Latest Mocha Changes
I''ve finally managed to find some time to do some serious work on
Mocha. There are some code snippets on my blog
(http://blog.floehopper.org/articles/2007/04/12/preview-of-latest-mocha-changes)
showing the new functionality available in trunk (revision 128). I
don''t don''t know how many people out there are using trunk, but it
would be great to get some feedback on these
2007 May 23
2
lines of code
I know this is probably a meaningless metric, but I''m new to TDD and
would like to know what to expect in terms of lines of code of tests
to lines of code in a "typical" rails app. It seems like it could be
as much as 5:1 or more. Perhaps its more like number of test
methods : lines of code is closer to 1:1 ?
2008 Jan 18
5
How do I pass form values from POST controller specs?
Hi there
I just started my first Merb app and I''m running into some weird
things in Specs. When I do:
describe "create action" do
it "should create a new project" do
project_params = {:name => ''bekkunin''}
Project.should_receive(:create).with(project_params)
controller, action = post(''/projects'', :project