On Thu, Jan 14, 2010 at 10:10 PM, DeNigris Sean s...@clipperadams.comwrote:
Rspec gurus,
I have 2 questions about autospec. I've played around quite a bit, but
can't figure it out...
1. I got autospec to work with my directory structure
(examples/*_example.rb), but it only works if I
On Thu, Jan 14, 2010 at 5:46 AM, John Polling li...@ruby-forum.com wrote:
Hi,
I've been a .Net developer for a number of years now and I'm a big fan
of TDD / BDD. I have been following these principles for a couple of
years and use tools such as NUnit for testing purposes.
I am now
On Thu, Jan 14, 2010 at 6:33 AM, John Polling li...@ruby-forum.com wrote:
Thanks for this David.
I suppose the thing I am so used to is testing classes in isolation
whereas Cucumber is about testing everything together.
Did you do all of your testing in NUnit?
When I was working on .NET
On Jan 14, 2010, at 8:46 AM, Phillip Koebbe wrote:
John Polling wrote:
Generally what I do is drive all my individual classes out using
NUnit
and Rhino.Mocks and then do the acceptance testing later with
FitNesse.
I think this is the part that I'm confusing myself with as most
Cucumber
On Thu, Jan 14, 2010 at 2:12 PM, Onno van der Straaten
onno.van.der.straa...@gmail.com wrote:
Hi,
I'm trying to install the selenium client with gem install selenium-client.
This returns the following message
ERROR: could not find gem selenium-client locally or in a repository
BTW, I'm
On Thu, Jan 14, 2010 at 2:37 PM, David Chelimsky dchelim...@gmail.comwrote:
On Thu, Jan 14, 2010 at 2:12 PM, Onno van der Straaten
onno.van.der.straa...@gmail.com wrote:
Hi,
I'm trying to install the selenium client with gem install
selenium-client.
This returns the following message
On Tue, Jan 12, 2010 at 11:35 AM, Nick Hoffman li...@ruby-forum.com wrote:
By the way, does this spec:
{:get = '/path'}.should route_to(...)
make this spec redundant?:
params_from(:get, '/path').should == {...}
Yes - route_to checks both sides of the translation.
They read the
On Wed, Jan 13, 2010 at 10:20 AM, Nick Hoffman li...@ruby-forum.com wrote:
David Chelimsky wrote:
On Tue, Jan 12, 2010 at 11:35 AM, Nick Hoffman li...@ruby-forum.com
wrote:
By the way, does this spec:
{:get = '/path'}.should route_to(...)
make this spec redundant
On Tue, Jan 12, 2010 at 4:40 PM, rogerdpack rogerpack2...@gmail.com wrote:
Question.
Currently rspec appears to allow for a two-step test system, like
context abc
it 'should do y' do
end
end
It might be convenient to have an arbitrary number of nests, like
context abc
it 'should do
On Tue, Jan 12, 2010 at 6:58 PM, Saverio Miroddi li...@ruby-forum.comwrote:
David Chelimsky wrote:
MyModel.stub(:find).with(42).and_return(myModel)
Didn't work as expected - I'll do a bit of research and post again.
What is expected? What are you trying to accomplish?
Example in horror
On Sun, Jan 10, 2010 at 10:58 PM, Nick Hoffman li...@ruby-forum.com wrote:
Hey guys. I'm having some trouble with a route spec. In routes.rb , I
have:
map.connect 'foods/search/:name', :controller = :foods, :action =
:search
foods_controller_spec.rb has: http://codepad.org/dg3FERKw
(Joe Ferris - #935)
* see rdoc for Spec::Matchers
* and_yield provides configurable eval_context
* Eric Meyer David Chelimsky
* CTRL-C actually stops execution! (Bryan Helmkamp - #911)
* make drb port configurable (Chris Flipse - #875)
* changed raise_error to raise_exception (#933
rspec-rails version 1.3.0 has been released!
* http://rspec.info
* http://rubyforge.org/projects/rspec
* http://github.com/dchelimsky/rspec-rails
* http://wiki.github.com/dchelimsky/rspec/rails
* rspec-de...@rubyforge.org
Behaviour Driven Development for Ruby on Rails.
Changes:
### Version
Welcome Chad Humphries to the Rspec Development Team!
http://blog.davidchelimsky.net/2010/01/12/welcome-chad-humphries/
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
On Sun, Jan 10, 2010 at 3:22 PM, Onno van der Straaten
onno.van.der.straa...@gmail.com wrote:
Hi,
I'm trying to download the code for the RSpec book from github
http://wiki.github.com/dchelimsky/rspec/code-for-the-rspec-book-beta.
When I click 'Download Source' a window with a busy icon
On Fri, Jan 8, 2010 at 9:37 PM, DeNigris Sean s...@clipperadams.com wrote:
Hi list,
I'm writing an example for a class that represents the pickaxe e-book,
which I view in Preview.app:
describe PickaxeBook do
...
it should tell whether it's ready to read do
preview =
On Fri, Jan 8, 2010 at 7:24 AM, mix fausto.ga...@email.it wrote:
hi, is there a way to call a method/print something after ALL the
specs are run ? (with all, i mean all, after all the spec files, just
before the rspec output which say how many spec have passed)..
i want to print some text
|actual|
expected.any? {|e| actual.include?(e)}
end
end
Cheers,
David
Ben Fyvie
--
*From:* rspec-users-boun...@rubyforge.org [mailto:
rspec-users-boun...@rubyforge.org] *On Behalf Of *David Chelimsky
*Sent:* Thursday, January 07, 2010 1:19 AM
On Wed, Dec 30, 2009 at 10:30 AM, John j. Cuckler cars...@yahoo.com wrote:
Hi, I just wrote some specs for a rails plugin, I'm using some
fixtures and rake:spec:plugins works fine as long as there is only
this plugin loaded in the application, but if I add another one it
doesn't load
On Wed, Jan 6, 2010 at 7:15 PM, Ben Fyvie ben.fy...@champsoftware.comwrote:
We seem to be hitting some undesirable behavior with should_not in
combination with matchers that accept collections. Let me use the “include”
matcher for example (a co-worker reported similar problems using “be_any”
On Wed, Jan 6, 2010 at 8:53 PM, Phillip Koebbe phillipkoe...@gmail.comwrote:
Wincent Colaiuta wrote:
Well, there is more than one way to skin a cat, but the thing I like about
my proposed solution is that:
- the specification of the behavior appears in the describe block that
On Mon, Jan 4, 2010 at 3:00 PM, David Chelimsky dchelim...@gmail.comwrote:
http://github.com/dchelimsky/rspec/blob/master/lib/spec/mocks/proxy.rb#L117
This method is really unpleasant, perhaps some standard refactorings to
remove the complex conditional conditions and remove the nested
On Tue, Jan 5, 2010 at 7:35 AM, Andrew Premdas aprem...@gmail.com wrote:
2010/1/4 David Chelimsky dchelim...@gmail.com
On Mon, Jan 4, 2010 at 2:57 PM, Andrew Premdas aprem...@gmail.com wrote:
2009/12/30 Paul Hinze paul.t.hi...@gmail.com
Given this simple cucumber feature (related
On Tue, Jan 5, 2010 at 4:09 AM, Edvard Majakari
edvard.majak...@gmail.comwrote:
Hi,
My scenario is as follows, and so far I have not found the clean way
to implement the following.
In a method I have a method called allowed_for?(*args) used as
follows:
...
if o.allowed_for?(:foo, :bar)
On Tue, Jan 5, 2010 at 1:46 PM, Matt Wynne m...@mattwynne.net wrote:
Subclass it in your spec with
class TestController Admin::BaseController
def index
end
end
...then use the TestController in your tests for Admin::BaseController.
That might mean you'll need to add special routing
On Tue, Jan 5, 2010 at 2:53 PM, Phillip Koebbe phillipkoe...@gmail.comwrote:
Subclass it in your spec with
class TestController Admin::BaseController
def index
end
end
...then use the TestController in your tests for Admin::BaseController.
That might mean you'll need to add special
On Tue, Jan 5, 2010 at 6:44 PM, Wincent Colaiuta w...@wincent.com wrote:
El 05/01/2010, a las 21:52, Phillip Koebbe escribió:
Pat Maddox wrote:
The spec has Admin::BaseController as the described type. So of course
it's going to test against that. If you want to test a different class,
On Sun, Jan 3, 2010 at 6:56 PM, jollyroger timo.roess...@googlemail.comwrote:
Hey guys,
i have this before-filter in my application-controller:
def login_required
if !current_user
redirect_to join_welcome_path and return
end
end
This before-filter is prepended before all
On Mon, Jan 4, 2010 at 4:33 AM, Ijonas Kisselbach
ijonas.kisselb...@gmail.com wrote:
Hi,
I'm struggling with structuring my specs describing a large process in my
app. There are multiple paths of execution through that process each of
which I'm trying to describe using a different rspec
, but each
example becomes much easier to grok.
WDYT?
Thanks,
Ijonas.
On Mon, Jan 4, 2010 at 11:16 AM, David Chelimsky dchelim...@gmail.comwrote:
On Mon, Jan 4, 2010 at 4:33 AM, Ijonas Kisselbach
ijonas.kisselb...@gmail.com wrote:
Hi,
I'm struggling with structuring my specs describing a large
to setup the DB? To
avoid too much mocking and to avoid old-skool fixtures.
YES!
Thanks for the help.
Assuming it was helpful, you're welcome.
Cheers,
David
On Mon, Jan 4, 2010 at 12:56 PM, David Chelimsky dchelim...@gmail.comwrote:
On Mon, Jan 4, 2010 at 5:26 AM, Ijonas Kisselbach
On Mon, Jan 4, 2010 at 2:57 PM, Andrew Premdas aprem...@gmail.com wrote:
2009/12/30 Paul Hinze paul.t.hi...@gmail.com
Given this simple cucumber feature (related to another rspec bug I am
working on):
http://gist.github.com/266335
I'm fighting with this error messages that _only_ shows
On Sat, Jan 2, 2010 at 3:23 PM, Andrew Premdas aprem...@gmail.com wrote:
2009/12/30 rogerdpack rogerpack2...@gmail.com
What about something like:
expected #Class:2158174640 = Fixnum to be a kind of Fixnum
That is more aligned with other failure messages. WDYT?
I quite like it.
In
On Sat, Jan 2, 2010 at 4:50 PM, Rick DeNatale rick.denat...@gmail.comwrote:
On Sat, Jan 2, 2010 at 4:35 PM, David Chelimsky dchelim...@gmail.com
wrote:
On Sat, Jan 2, 2010 at 3:23 PM, Andrew Premdas aprem...@gmail.com
wrote:
2009/12/30 rogerdpack rogerpack2...@gmail.com
What
Hey all,
If you like coming up with the perfect method name, please join the fun at
https://rspec.lighthouseapp.com/projects/5645-rspec/tickets/935.
Cheers, and happy new year!
David
___
rspec-users mailing list
rspec-users@rubyforge.org
On Thu, Dec 31, 2009 at 12:54 PM, Phillip Koebbe phillipkoe...@gmail.comwrote:
I have a module of custom examples, such as
module ControllerHelperMethods
module MyExampleGroupMethods
def should_set_the_body_id(body_id)
it should set the body id
On Thu, Dec 31, 2009 at 2:05 PM, Phillip Koebbe phillipkoe...@gmail.comwrote:
Hi David,
First, thanks for the suggestion. I like that better.
Second, my motivation for doing this was born out of not being able to
do something I wanted to do in Remarkable. However, as I was trying to
On Wed, Dec 30, 2009 at 6:20 AM, Ronald Chaplin t73...@t73.biz wrote:
Hey all,
So I woke up early this morning, and was running some tests through
autospec, and it returned a time as follows:
Finished in 0.01516001 seconds
I know that there are alot of other more important issues
On Wed, Dec 30, 2009 at 10:26 AM, Ronald Chaplin t73...@t73.biz wrote:
On Wed, 2009-12-30 at 09:26 -0600, David Chelimsky wrote:
On Wed, Dec 30, 2009 at 6:20 AM, Ronald Chaplin t73...@t73.biz
wrote:
Hey all,
So I woke up early this morning, and was running some tests
On Wed, Dec 30, 2009 at 1:33 PM, rogerdpack rogerpack2...@gmail.com wrote:
before I hack up a patch for it. Would a patch to change
expected Fixnum to be a kind of Fixnum
to
expected Fixnum to be a kind of Fixnum (is a Class)
or possibly
expected Fixnum to be a kind of Fixnum (is a
On Tue, Dec 29, 2009 at 4:28 AM, Ashley Moran ashley.mo...@patchspace.co.uk
wrote:
On 28 Dec 2009, at 16:27, David Chelimsky wrote:
For most users, gems are the easiest answer. By all means, host source on
github if you want people to contribute, or have a place to inspect code,
but you
On Tue, Dec 29, 2009 at 9:53 AM, Ed Howland ed.howl...@gmail.com wrote:
On Tue, Dec 29, 2009 at 10:09 AM, David Chelimsky dchelim...@gmail.com
wrote: That said, I definitely think we need a home for information about
matchers.
Hosting them, however, is something I'd rather leave
On Tue, Dec 29, 2009 at 9:25 PM, John Smith li...@ruby-forum.com wrote:
Hello, I have a very simple non-web application I am trying to test
against. Say I have a library folder with several .rb files, and the one
that is to be executed is main.rb ('ruby main.rb' via command line).
How would I
On Sun, Dec 27, 2009 at 2:03 PM, Ed Howland ed.howl...@gmail.com wrote:
Hi, I have a custom matcher that I call XMLDiff that takes an actual
XML string and an expected one and uses RSpec's normal line differ to
show the difference at the node level. It uses a method called
be_functionaly_eql,
On Mon, Dec 28, 2009 at 10:48 AM, Sean Grove s...@saucelabs.com wrote:
I'm trying to write a simple spec dispatcher, the client-side of which
essentially does the following:
options = Spec::Runner::OptionParser.parse( #{file}, $stderr, std_out )
options.line_number = line
Hi all,
The be_true and be_false matchers pass if the actual object is the singleton
instance of true or false respectively. e.g.
true.should be_true # passes
1.should be_true # fails
true.should be_true #fails
false.should be_false # passes
nil.should be_false # fails
On Mon, Dec 28, 2009 at 1:04 PM, David Chelimsky dchelim...@gmail.comwrote:
Hi all,
The be_true and be_false matchers pass if the actual object is the
singleton instance of true or false respectively. e.g.
true.should be_true # passes
1.should be_true # fails
Actually, 1.should be_true
Hey all,
I'm thinking of adding an eq(expected) matcher. Please comment in
https://rspec.lighthouseapp.com/projects/5645-rspec/tickets/932 if you're
interested.
Cheers,
David
___
rspec-users mailing list
rspec-users@rubyforge.org
On Mon, Dec 28, 2009 at 2:08 PM, rogerdpack rogerpack2...@gmail.com wrote:
What I really want to say is should raise(Blah) but Ruby already
defines
raise as a keyword :)
I'd be open to aliasing raise_error with raise_exception, renaming it to
raise_exception and aliasing raise_error
Hey all,
The cucumber-rails generator generates config/environments/cucumber.rb for
us, which means we don't need to do any gem configuration. As things stand
now, rspec-rails does not do the same thing for us. I'm thinking of having
the generator update config/environments/test.rb, adding gem
On Sat, Dec 26, 2009 at 5:53 PM, Ed Howland ed.howl...@gmail.com wrote:
I hope this isn't a dumb question, but can a custom matcher be written
for a possibly non-existant predicate? I know that if the object
responds to some predicate? message, RSpec will breate a custom
matcher on the fly
On Sat, Dec 26, 2009 at 6:55 PM, David Chelimsky dchelim...@gmail.comwrote:
On Sat, Dec 26, 2009 at 5:53 PM, Ed Howland ed.howl...@gmail.com wrote:
I hope this isn't a dumb question, but can a custom matcher be written
for a possibly non-existant predicate? I know that if the object
responds
On Wed, Dec 23, 2009 at 3:44 PM, Ronald Chaplin t73...@t73.biz wrote:
So I'm going through the rspec book right now, and get to page 72, as it
introduces Spec::Mocks::Methods#as_null_object . In the book, it doesn't
describe how it operates, or much detail about it other than it tells to
On Thu, Dec 24, 2009 at 1:45 AM, Juanma Cervera li...@ruby-forum.comwrote:
Hello,
I am trying to write the specs for controllers that use
InheritedResource.
Can somebody tell me if this is possible?
I have read that I have to use integrated_views, but even in that case
it doesn't work.
I
On Tue, Dec 22, 2009 at 8:25 AM, Gnagno Gnagno li...@ruby-forum.com wrote:
Tom Stuart wrote:
How does the application detect the user's culture?
Cheers,
-Tom
Thanks for your reply Tom,
in my home controller I have a line like this for each language:
redirect_to
On Tue, Dec 22, 2009 at 9:14 AM, Peter Fitzgibbons
peter.fitzgibb...@gmail.com wrote:
Hello Folks,
This gist http://gist.github.com/261791 has an example user.rb,
user_spec.rb
At runtime, this snippet fails
u = User.find(123)
u.update_with_profile({...})
The error occurred while
On Tue, Dec 22, 2009 at 9:22 AM, David Chelimsky dchelim...@gmail.comwrote:
On Tue, Dec 22, 2009 at 9:14 AM, Peter Fitzgibbons
peter.fitzgibb...@gmail.com wrote:
Hello Folks,
This gist http://gist.github.com/261791 has an example user.rb,
user_spec.rb
At runtime, this snippet fails
u
On Tue, Dec 22, 2009 at 9:30 AM, Rick DeNatale rick.denat...@gmail.comwrote:
Also counting on class variables to retain state in Rails is a recipe
for disaster.
Did you read that in rails recipes?
:-/
___
rspec-users mailing list
On Tue, Dec 22, 2009 at 9:35 AM, rogerdpack rogerpack2...@gmail.com wrote:
Forgive me if the question is a common one...
does rspec have any concept like
given a certain set of paths do
it should be able to recreate them do; end
it ...; end
end
Not built into rspec. There is a merb
On Tue, Dec 22, 2009 at 10:15 AM, Rick DeNatale rick.denat...@gmail.comwrote:
On Tue, Dec 22, 2009 at 10:38 AM, David Chelimsky dchelim...@gmail.com
wrote:
On Tue, Dec 22, 2009 at 9:35 AM, rogerdpack rogerpack2...@gmail.com
wrote:
Forgive me if the question is a common one...
does
On Tue, Dec 22, 2009 at 10:31 AM, rogerdpack rogerpack2...@gmail.comwrote:
context given a certain set of paths do
Ahh so it's called context.
Cool (though I'll admit that naming it given can make it sound more
like an English sentence, so an alias would be a suggestion).
On Tue, Dec 22, 2009 at 9:33 AM, rogerdpack rogerpack2...@gmail.com wrote:
raise_error already catches any type of exception, error or not:
class BlahException Exception; end
class BlahError StandardError; end
lambda { raise BlahException }.should raise_error(BlahException)
On Sat, Dec 12, 2009 at 1:35 PM, Saverio Miroddi li...@ruby-forum.com wrote:
Tom Stuart wrote:
On 10 Nov 2009, at 14:08, Saverio Miroddi wrote:
Is there a clean/simple way of stubbing the activerecord find() for a
single instance?
MyModel.stub(:find).with(42).and_return(myModel)
Didn't
On Mon, Dec 14, 2009 at 1:05 AM, Amit Kulkarni li...@ruby-forum.com wrote:
Thanks David,
Now in spec when i write login_as :admin then there must be some method
written for login_as?
That would be a helper that you write yourself or is provided by the
authentication framework you're using. It
On Mon, Dec 14, 2009 at 3:26 AM, Andrei Erdoss erd...@gmail.com wrote:
On Mon, Dec 14, 2009 at 9:05 AM, Amit Kulkarni li...@ruby-forum.com wrote:
Thanks David,
Now in spec when i write login_as :admin then there must be some method
written for login_as?
Now if there are before filters in
On Mon, Dec 14, 2009 at 3:57 PM, DeNigris Sean s...@clipperadams.com wrote:
If I'm reading the docs right, the current implementation would be:
my_workspace.should have(1).documents
Would it be hard to have it be: my_workspace.should have(1).document
On Sun, Dec 13, 2009 at 2:58 PM, Sean Grove s...@saucelabs.com wrote:
Hey all,
I'm working on bring DeepTest up to compatibility with rspec 1.2.9 in order
to parallelize tests, and hit a few roadblocks after 1.1.12. Specifically, I
was wondering about ExampleProxy (which I know now is for the
On Sat, Dec 12, 2009 at 11:28 AM, athem allan.m.mil...@gmail.com wrote:
Hello,
I've written the following simple rspec test that I'm trying to run
(rspec 1.2.9) standalone (outside Rails) from the command line and
getting the following error. Any idea for how to fix this? Thanks.
$ spec
On Thu, Dec 10, 2009 at 2:32 AM, Amit Kulkarni li...@ruby-forum.com wrote:
Hello,
I am writing controller specs.I want to know how can i write specs which
invlove before filters in controllers.
Generally, before filters are part of the internal implementation and
don't warrant specification
On Wed, Dec 9, 2009 at 5:28 PM, DEfusion david.sp...@gmail.com wrote:
This is a problem I experience quite a bit:
1) Create a spec and outline all the examples (as not yet implemented)
2) Write the body of a example
3) Autospec runs spec - fail
4) Make that example pass
5) Autospec runs
On Wed, Dec 9, 2009 at 5:41 AM, Rodrigo Rosenfeld Rosas
lboc...@yahoo.com.br wrote:
I was thinking that it would be great to add 2 additional methods to
Object: should_all and should_none.
The idea is that we would be able to write tests like:
[...@admin, @allowed_user].should_all
consensus - or not :)
Cheers,
David
Pat
On Dec 9, 2009, at 5:27 AM, David Chelimsky wrote:
On Wed, Dec 9, 2009 at 5:41 AM, Rodrigo Rosenfeld Rosas
lboc...@yahoo.com.br wrote:
I was thinking that it would be great to add 2 additional methods to
Object: should_all and should_none.
The idea
On Tue, Dec 8, 2009 at 2:17 AM, Sam Woodard li...@ruby-forum.com wrote:
Code and tests at,
http://gist.github.com/251480
The objects you're setting expectations on are not the same objects that are
being loaded by emailed_association_requests.to_send on line 4 of the gist.
They may have the
On Mon, Dec 7, 2009 at 5:32 AM, Amit Kulkarni li...@ruby-forum.com wrote:
Hi David,
I have some query regarding running spec command.
When i tried to run normal testcase by command spec
test_controller_spec.rb
then that particular test case runs but the routing testcase fails.
Now if i run
On Sun, Nov 29, 2009 at 12:33 AM, rogerdpack rogerpack2...@gmail.comwrote:
It is somewhat surprising to me, as a newbie, to have to assert
a.should be_a(Hash)
That extra space in there feels awkward.
Suggestion:
allow for constructs like
a.should.be_a(Hash)
Thoughts?
You're about 4
On Fri, Nov 27, 2009 at 3:21 AM, Amit Kulkarni li...@ruby-forum.com wrote:
Amit Kulkarni wrote:
Any suggestions on the above topic
Hello,
I want to print my output in an html file.
I am using command rake spec:controllers --format html:result.html from
the root directory
But it is not
On Thu, Nov 26, 2009 at 9:24 PM, Emerson Macedo li...@ruby-forum.comwrote:
Fernando Perez wrote:
Hi,
Let's take the example of the depot app. In my controller I set @order.
Then in the view comes the bad stuff:
@order.items.each do |item|
item.product.title
end
Now I'm
On Thu, Nov 26, 2009 at 1:21 AM, Amit Kulkarni li...@ruby-forum.com wrote:
Amit Kulkarni wrote:
Ok Fine.That sounds to be a good idea.
Thanks
Hi David,
Good news,My routing scenarios are working now.
I dont know how but it did.I was going to mail you the app but it is
working fine now.
On Sat, Nov 21, 2009 at 12:28 AM, Elliot Winkler
elliot.wink...@gmail.comwrote:
I'm having the hardest time trying to figure out something weird I've
suddenly run into. So I'm using Spork to run my specs. Naturally I've got
TM_RSPEC_OPTS in Textmate set to --drb and I'm running `spork` from
.
Fixed in git.
Cheers,
David
On Nov 8, 3:30 pm, David Chelimsky dchelim...@gmail.com wrote:
On Sun, Nov 8, 2009 at 2:35 AM, Conrad Taylor conra...@gmail.com
wrote:
David, I'm still seeing the issue. Thus, here's a transcript of my
activity:
http://pastie.org/688639
$ gem which
On Mon, Nov 23, 2009 at 9:36 PM, Scott Taylor sc...@railsnewbie.com wrote:
On Nov 23, 2009, at 9:35 PM, David Chelimsky wrote:
On Fri, Nov 20, 2009 at 9:06 PM, Bogdan Dumitru dumbog...@gmail.comwrote:
The syntax for use_fakefs changed in version 0.2.1 and the fixtures
for rspec
rexical-1.0.4
Successfully installed rake-compiler-0.6.0
26 gems installed
Are all these really development dependencies?
Of rspec, no, but they are dependencies of rspec's dependencies, and their
dependencies, and so on, and so on, and so on ...
grimen
On Nov 19, 10:50 pm, David Chelimsky
On Fri, Nov 20, 2009 at 7:25 AM, Andy Koch andy.k...@pc-doctor.com wrote:
On Nov 19, 10:22 pm, Stephen Eley sfe...@gmail.com wrote:
On Fri, Nov 20, 2009 at 1:02 AM, Andy Koch andy.k...@pc-doctor.com
wrote:
I have a project where autospec is not adding new files to it's test
list.
On Thu, Nov 19, 2009 at 4:11 AM, bqaanne beccy_a...@hotmail.com wrote:
Hi,
I am very new to Ruby and Rspec, and found a simple tutorial online about
rspec.
It involves two files:
bowling.rb and bowling_spec.rb
# bowling_spec.rb
require'rubygems'
require 'spec'
require 'bowling'
On Wed, Nov 18, 2009 at 7:05 AM, grimen gri...@gmail.com wrote:
$ sudo gem install rspec-rails --development
Password:
ERROR: Error installing rspec-rails:
rspec requires cucumber (= 0.3, development)
...and when installed cucumber manually, it ends up with weird stuff.
Can you
On Wed, Nov 18, 2009 at 2:53 AM, Tom Stuart t...@experthuman.com wrote:
Hi,
Is it realistic and desirable to tweak RSpec so that the
MockExpectationError for a stubbed message works as specified in the
attached spec patch?
In short, we wasted some time today on a wild goose chase because a
On Tue, Nov 17, 2009 at 3:04 PM, David Nawara li...@ruby-forum.com wrote:
Hi all,
This seems like a plugin conflict (I haven't yet had success replicating
this in a new project), but short version is: when I have rspec-rails
in my environment.rb plugin config, table names are double quoted
On Tue, Nov 17, 2009 at 4:53 AM, Amit Kulkarni li...@ruby-forum.com wrote:
Amit Kulkarni wrote:
Oh that means if i am using rails version 2.1.2 or more then i need to
have rspec version 1.1.12.
In that case i need to remove the latest version and install rspec
1.1.12.
I will do it and
On Sun, Nov 15, 2009 at 7:50 PM, Marcelo de Moraes Serpa
celose...@gmail.com wrote:
Hello list,
I had a hard time to find out a way to mock the singleton feed method of
the following class:
class RssReader
def self.feed(feed_url)
output = []
open(feed_url) do |http|
On Fri, Nov 13, 2009 at 2:28 AM, Amit Kulkarni li...@ruby-forum.com wrote:
MY spec helper contains following code:
# This file is copied to ~/spec when you run 'ruby script/generate
rspec'
# from the project root directory.
ENV[RAILS_ENV] ||= 'test'
require
On Fri, Nov 13, 2009 at 10:04 AM, Arco akl...@gmail.com wrote:
I'm using datamapper and have two associated classes:
- Org - has n, :users
- User - belongs_to :org
When I test the User object, I have been able to mock/stub methods of
the Org object. Great!
But - I still need to require
On Wed, Nov 11, 2009 at 11:19 PM, Amit Kulkarni li...@ruby-forum.comwrote:
David Chelimsky wrote:
On Nov 11, 2009, at 5:58 AM, Amit Kulkarni li...@ruby-forum.com wrote:
it should map { :controller = 'home' } RESTfully do
params_from( :get, '/home' ).should == { :controller
On Thu, Nov 12, 2009 at 11:32 PM, Amit Kulkarni li...@ruby-forum.comwrote:
David Chelimsky wrote:
On Wed, Nov 11, 2009 at 11:19 PM, Amit Kulkarni
li...@ruby-forum.comwrote:
It gets executed but i am not able to see any results as in 2 examples 2
passed something like
are using bundled (vendor/gems
preferable), zip it up and submit it in a ticket to
http://rspec.lighthouseapp.com?
Thx,
David
-D
On Nov 11, 12:54 am, David Chelimsky dchelim...@gmail.com wrote:
On Tue, Nov 10, 2009 at 4:10 PM, DEfusion david.sp...@gmail.com wrote:
Removing the :sub domain
On Wed, Nov 11, 2009 at 4:54 AM, David Chelimsky dchelim...@gmail.comwrote:
On Wed, Nov 11, 2009 at 3:12 AM, DEfusion david.sp...@gmail.com wrote:
Hi David,
Yeah I had used the new style in the past and got the same issue, I
just accidentally reverted to the old style.
Anyway changing
On Wed, Nov 11, 2009 at 1:42 AM, Amit Kulkarni li...@ruby-forum.com wrote:
Thanks David for the information but still i am getting the same error.
What i have done is:
I have home controller.
now i am writing route scenarios in home_controller_spec.rb which is
under spec/controllers
On Nov 11, 2009, at 5:58 AM, Amit Kulkarni li...@ruby-forum.com wrote:
Hi David still no success.
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
describe HomeController, routes do
describe route generation do
it should map { :controller = 'home', :action = 'index' } to /
On Tue, Nov 10, 2009 at 4:44 AM, Amit Kulkarni li...@ruby-forum.com wrote:
Hi all,
I am writing scenarios for testing my routes but it is giving me error
as undefined method `route_for and also for params_from.
Did i miss something which i need to add in my controller
My code is as follows:
On Tue, Nov 10, 2009 at 2:25 PM, DEfusion david.sp...@gmail.com wrote:
I'm getting really cheesed off with RSpec not matching some of my
routes when controller testing when I have subdomain checking
(courtesy of subdomain-fu) on namespaces. These routes appear in the
rake routes output, and
before. If I do re-create it I'll post
more details here.
=D
On Nov 10, 10:48 pm, David Chelimsky dchelim...@gmail.com wrote:
On Tue, Nov 10, 2009 at 2:25 PM, DEfusion david.sp...@gmail.com
wrote:
I'm getting really cheesed off with RSpec not matching some of my
routes
1201 - 1300 of 2985 matches
Mail list logo