Displaying 20 results from an estimated 10000 matches similar to: "specify_negatively"
2007 Feb 16
0
rspec-ext 0.0.1
Hello,
I''ve just released rspec-ext 0.0.1 (http://rubyforge.org/projects/
rspec-ext/)
It is gem-installable (rspec-ext gem)
It is simply two _experimental_ (and may be not well tested)
extensions of rspec as for now:
* specify_negatively (http://rashkovskii.com/articles/2007/1/25/rspec-
specify_negatively, http://rashkovskii.com/articles/2007/2/3/
specify_negatively-updated)
*
2007 Sep 21
11
given_it
Hello,
Just decided to check whether I am doing something that makes sense
or not. I was thinking about how cool would it be to re-use examples
(just like we reuse story scenarios with GivenScenario). I was not
sure if this possibility already exists in rspec (and, honestly, was
lazy to check), so I have created this helper:
def given_it(name)
example_definition =
2007 Mar 27
1
Aspects
I''ve become very fond of Yurii Rashkovskii''s "aspects". For such a
simple change they make it a LOT easier to navigate, read and verify
specs. Are there any plans to include something like this in RSpec?
Ashley
2007 Jan 02
0
acts_as_authenticated plugin rspecs
Hello,
Just thought it could be interesting for some of you. I''ve written
rspecs for acts_as_authenticated plugin.
http://rashkovskii.com/articles/2007/01/01/rspec-on-rails-
acts_as_authenticated
I''m not sure they are 100% ok, but they seem to be :)
Thank you,
Yurii.
2007 Jul 26
6
response.should_not redirect_to
Hey,
May be it is just too deep night over here and I''m missing something
though I got this failure on {{{response.should_not redirect_to}}}:
''QueuesController should allow authenticated user to access ''show''''
FAILED
Matcher does not support should_not.
See Spec::Matchers for more information
about matchers.
Also I''ve found this in
2007 May 02
13
RSpec 0.8.2 pain, missing spec/rails?
Hi. I''m upgrading a project from an 0.8.0 pre-release gem to 0.8.2.
I''ve installed the 0.8.2 gem, and the rspec_on_rails 0.8.2 plugin:
ruby script/plugin install
svn://rubyforge.org/var/svn/rspec/tags/REL_0_8_2/rspec
When I try to run my specs though, I get the below error. It''s as if the
spec_helper cannot find "spec/rails". I''ve noticed that
2007 Jun 23
4
inverse examples? (should fail)
The new "pending" example feature reminds me of a feature I''ve been
bouncing around in my head, to aid in refactoring. Often, when I''m
changing existing behaviour, I know that certain aspects of the old
behaviour should change. Imagine changing the "it" method to perhaps
"not" or "old" or "removed"... The behaviour would be to
2007 Apr 04
11
ANN: RSpec 0.9.0 beta-1 available for download.
We''d like to get some feedback on RSpec 0.9 before we start pushing
out releases via Rubyforge''s gem server and update the website. We
have therefore made the first beta of 0.9 available - both prepackaged
and tagged in subversion (see below).
RSpec 0.9 introduces a new API for expectations, which essentially
means that your underscores go away (there has been other discussions
2009 Dec 08
1
extraction of sub-matrix by name
Dear all,
sorry to bother you with potentially known issue --
we have noticed that if we select data frame rows by rownames, we get
some results back if the match can be done unambiguously, though the
match is not perfect (see example), e.g. x{"2",] will return a row if
there is a unique row with name starting with "2" (but may be
"2375745"!)
is that a
2007 May 19
1
RSpec 1.0.0 and a couple of other things
First up, congratulations to the team on RSpec 1.0.0! RSpec is one of
the most vibrant and professionally-run projects in the world of Ruby
open source. Now that there is a commitment to a stable API I think
we''ll see RSpec really take off.
Two quick things...
In the absence of official Spec::UI docs, can Spec::UI be installed
as a Rails plug-in? eg.
script/plugin install
2007 Aug 12
1
Test::Unit to RSpec Converter
Hey, just posting in case this is of interest.
I just recently wrote a Rails plugin to convert Rails Test::Unit
cases to RSpec.
http://www.davidjrice.co.uk/articles/2007/8/12/ruby-on-rails-plugin-
test-unit-to-rspec-converter
it''s not going to work 100% in every case, but it''s really helped me
convert old tests to the lovely RSpec :)
Best,
Dave
---
David Rice
2008 Mar 25
0
HOWTO: RSpec integration with Rails
Hi, I''ve hacked together a setup to load an RSpec backtrace into jEdit (in
other words, you''ll be able to click the relevant failed behaviour or error
to go straight the relevant file and line).
More info here:
http://textgoeshere.org.uk/articles/2008/03/howto-integrate-rspec-on-rails-with-jedit/
--
Dave Nolan
http://textgoeshere.org.uk
-------------- next part --------------
2006 Dec 17
0
Best way to do automated acceptance tests
Hi
This is only part related to rspec but I asked the Rails list and
didn''t get a reply so I thought I''d try here.
Basically, since rspec_on_rails doesn''t have an equivalent to rails
integration tests, I''m trying to find a way of doing automated
acceptance tests. I''ve found selenium and watir, but I''m struggling
to tell the two
2008 Mar 04
3
rspec vs. test::more
Hey all,
you HAVE to read this blog post:
http://blog.jrock.us/articles/RSpec%20vs.%20Test::More.pod#comments
My favorite parts are:
1)
... some rspec code ...
> For the sake of comparison lets translate this directly into perl:
... some perl code ...
2)
>First, notice that the rspec-version isn''t actually ruby code. It''s
not any real language.
For the sake of
2007 May 30
2
should_eql etc?
Hi, I''m trying the specs for restful_authentication I found here
http://jonathan.tron.name/articles/2007/01/02/rspec-on-rails-restful-
authentication
It seems to use custom .should methods: should_eql,
should_be_an_instance_of, should_redirect_to, should_be_success,
should_not_be_nil, should_be_nil, should_not_be_nil, should_be_empty,
should_be_success, should_not_change, and
2010 Dec 12
0
rspec-2.3.0 is released
rspec-2.3.0 is released (including rspec, rspec-core, rspec-mocks, rspec-expecations and rspec-rails).
### rspec-core-2.3.0 / 2010-12-12
[full changelog](http://github.com/rspec/rspec-core/compare/v2.2.1...v2.3.0)
* Enhancements
* tell autotest to use "rspec2" if it sees a .rspec file in the project''s
root directory
* replaces the need for ./autotest/discover.rb,
2011 Nov 06
0
rspec-2.8.0.rc1 is released
http://blog.davidchelimsky.net/2011/11/06/rspec-280rc1-is-released/
See the blog post for more information, but highlights include:
1. tag overrides
Now you can set tag/filter defaults in .rspec:
--tag ~javascript
or in RSpec.configure (in spec_helper.rb):
RSpec.configure {|c| c.filter_run_excluding :javascript}
and then override that from the command line when you want to run the
2012 Jul 06
0
Running Rspec tests with JRuby fails
How to run RSpec tests with JRuby in a Java project? I tried to run it
with JRuby 1.7.0.preview1,
rspec (2.10.0)
rspec-core (2.10.1)
rspec-expectations (2.10.0)
rspec-mocks (2.10.1)
rspec-rails (2.10.1)
as follows:
jruby -S rspec and got the error:
javix at ubuntu:~/Development/rspec_jruby$ jruby -S rspec spec
NameError: cannot load Java class com.models.Calculator
for_name at
2006 Nov 24
0
rSpec REL_0_7_2 rspec_on_rails (MissingSourceFile) >> Fixed in trunk
Hi Aslak, Thanks for the help. That bug is fixed in trunk.
Here''s my path to recovery ...
$ svn co svn://rubyforge.org/var/svn/rspec/trunk ~/tmp/rspec
$ cd ~/tmp/rspec
$ rake gem
$ sudo gem install pkg/rspec-0.7.3.gem
$ ./script/plugin install --force svn://rubyforge.org/var/svn/rspec/trunk/vendor/rspec_on_rails/vendor/plugins/rspec
$ ./script/generate rspec (required to regenerate
2008 Jun 13
0
rspec-users Digest, Vol 24, Issue 20
>
> Message: 4
> Date: Fri, 13 Jun 2008 11:47:22 -0500
> From: David Chelimsky <dchelimsky at gmail.com>
> Subject: Re: [rspec-users] rspec and rspec-rails install hell
> To: rspec-users <rspec-users at rubyforge.org>
> Message-ID: <EFE63242-19E9-42C5-AACD-16E239A9023B at gmail.com>
> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes