Hi,
I've got the rspec gem installed, as well as the two plugins rspec
rspec-rails. I can't remember which is actual used and which isn't
for my rails app when I go rake spec? Anyone know?
Could I remove either of the core rpec gem OR the rspec plugin? or
do I need all three components?
Tks
On Fri, Nov 7, 2008 at 12:56 PM, aslak hellesoy
[EMAIL PROTECTED] wrote:
On Fri, Nov 7, 2008 at 11:23 AM, Greg Hauptmann
[EMAIL PROTECTED] wrote:
so just to be clear are you saying:
* rspec gem = All that is need for Ruby on Rails Rspec work
* 'rspec plugin' = not needed (functionality in
forgot to clarify - for rails development you'll need both rspec and
rspec-rails.
What I meant is that you can go plugin-less, you just have to install
the two following gems: rspec and rspec-rails, then bootstrap your app
by generating a few files. And your set.
I personally prefer using
I’m trying to spec a ‘binary’, and as previously discussed on this list,
I’m trying to do it ‘from outside’ – i.e., by calling it with Kernel#`
and observing the (side-)effects.
Unfortunately, this doesn’t really let me spec expectations about its
internals. Let’s assume I have a -d flag and I
Hi,
The customer is not happy about writing Stories in a text editor.
Has anyone else experienced this? Is anyone using a wiki, spreadsheet,
or word document and automatically converting to a text file?
Thanks
Aidy
___
rspec-users mailing list
Are you pairing with them? Can you not just drive and do the typing,
asking them questions all the while to keep them engaged?
I think David is cooking something up (have a look at his blog) but it
might be a while coming.
If you can find a Mac, the TextMate text editor has nice syntax
Andrew Premdas wrote:
I'm working on writing features for a wizard. The wizard collects
information from a number of different forms, and you can navigate
through it in a number of ways. Anyhow one of these forms is a
customer form collecting name, and email.
In the context of the wizard I
On 7 Nov 2008, at 06:09, Andrew Premdas wrote:
I'm working on writing features for a wizard. The wizard collects
information from a number of different forms, and you can navigate
through it in a number of ways. Anyhow one of these forms is a
customer form collecting name, and email.
In
On Fri, Nov 7, 2008 at 9:54 AM, Matt Wynne [EMAIL PROTECTED] wrote:
One technique is to have a single noisy 'declarative' scenario that
explicitly walks around filling things in, then all the rest use more
'imperative' style steps where most of the detail is buried away.
You've got those
Hi Matt,
How are you?
On 07/11/2008, Matt Wynne [EMAIL PROTECTED] wrote:
Are you pairing with them? Can you not just drive and do the typing, asking
them questions all the while to keep them engaged?
Cucumber is now the standard here, with all projects using it. The
guys who were using Watin
On Fri, Nov 7, 2008 at 9:58 AM, David Chelimsky [EMAIL PROTECTED] wrote:
On Fri, Nov 7, 2008 at 9:54 AM, Matt Wynne [EMAIL PROTECTED] wrote:
One technique is to have a single noisy 'declarative' scenario that
explicitly walks around filling things in, then all the rest use more
'imperative'
On Fri, Nov 7, 2008 at 12:03 PM, David Chelimsky [EMAIL PROTECTED] wrote:
Hey all,
I'm pleased to announce that the Pragmatic Bookshelf's The RSpec Book
is almost here. The plan is:
* beta/pdf in December, 2008
* print in April, 2009
The RSpec Book, authored by me, Dave Astels, Zach
On Fri, Nov 7, 2008 at 11:23 AM, Greg Hauptmann
[EMAIL PROTECTED] wrote:
so just to be clear are you saying:
* rspec gem = All that is need for Ruby on Rails Rspec work
* 'rspec plugin' = not needed (functionality in gem)
* 'rspec-rails' plugin = not needed (functionality in gem)
is this
Hey all,
I'm pleased to announce that the Pragmatic Bookshelf's The RSpec Book
is almost here. The plan is:
* beta/pdf in December, 2008
* print in April, 2009
The RSpec Book, authored by me, Dave Astels, Zach Dennis, Aslak
Hellesøy, Bryan Helmkamp, and Dan North, will comprise material on
Matt Wynne wrote:
Are you pairing with them? Can you not just drive and do the typing,
asking them questions all the while to keep them engaged?
I think David is cooking something up (have a look at his blog) but it
might be a while coming.
If you can find a Mac, the TextMate text editor
On 7 Nov 2008, at 15:02, David Chelimsky wrote:
On Fri, Nov 7, 2008 at 9:58 AM, David Chelimsky
[EMAIL PROTECTED] wrote:
On Fri, Nov 7, 2008 at 9:54 AM, Matt Wynne [EMAIL PROTECTED]
wrote:
One technique is to have a single noisy 'declarative' scenario that
explicitly walks around filling
David Chelimsky wrote:
On Fri, Nov 7, 2008 at 9:58 AM, David Chelimsky [EMAIL PROTECTED] wrote:
On Fri, Nov 7, 2008 at 9:54 AM, Matt Wynne [EMAIL PROTECTED] wrote:
One technique is to have a single noisy 'declarative' scenario that
explicitly walks around filling things in, then all
On 7 Nov 2008, at 14:42, aidy lewis wrote:
On 07/11/2008, Matt Wynne [EMAIL PROTECTED] wrote:
Are you pairing with them? Can you not just drive and do the
typing, asking
them questions all the while to keep them engaged?
Cucumber is now the standard here, with all projects using it. The
Joseph,
Thanks for your reply, much appreciated.
The scenarios don't have titles just for this discussion. Felt including
them would be a distraction.
I agree that some of the Givens should be Whens in these examples e.g.
Given I step to customer
When I fill in my customer details
Matt,
Thanks for reply much appreciated and very helpful
I'm definitely feeling a need/desire to write features at different
levels as you say, and in this case I am trying both, though I haven't
quite worked out a nice way of organising things as yet. I definitely
want to seperate my 'noisy'
Hi,
The customer is not happy about writing Stories in a text editor.
Has anyone else experienced this? Is anyone using a wiki, spreadsheet,
or word document and automatically converting to a text file?
There will be custom editors/wikis with aides like code completion,
nice visuals,
You could try the bundle in the E editor on windows http://www.e-texteditor.com/
2008/11/7 aidy lewis [EMAIL PROTECTED]:
Hi Matt,
How are you?
On 07/11/2008, Matt Wynne [EMAIL PROTECTED] wrote:
Are you pairing with them? Can you not just drive and do the typing, asking
them questions all
+1 for abstract and concrete as it gives an indication of what the
story should contain i.e.
I should get an error
vs
I should be told my email must have an @ sign and be ...
Andrew
2008/11/7 David Chelimsky [EMAIL PROTECTED]:
On Fri, Nov 7, 2008 at 9:58 AM, David Chelimsky [EMAIL
Shot (Piotr Szotkowski) [EMAIL PROTECTED] writes:
I’m trying to spec a ‘binary’, and as previously discussed on this list,
I’m trying to do it ‘from outside’ – i.e., by calling it with Kernel#`
and observing the (side-)effects.
Unfortunately, this doesn’t really let me spec expectations
Greg Hauptmann wrote:
Hi,
I've got the rspec gem installed, as well as the two plugins rspec
rspec-rails. I can't remember which is actual used and which isn't
for my rails app when I go rake spec? Anyone know?
Could I remove either of the core rpec gem OR the rspec plugin? or
do I
David Chelimsky wrote:
On Fri, Nov 7, 2008 at 9:58 AM, David Chelimsky [EMAIL PROTECTED] wrote:
On Fri, Nov 7, 2008 at 9:54 AM, Matt Wynne [EMAIL PROTECTED] wrote:
One technique is to have a single noisy 'declarative' scenario that
explicitly walks around filling things in, then all
so just to be clear are you saying:
* rspec gem = All that is need for Ruby on Rails Rspec work
* 'rspec plugin' = not needed (functionality in gem)
* 'rspec-rails' plugin = not needed (functionality in gem)
is this right?
thanks again
On Fri, Nov 7, 2008 at 8:10 PM, Fernando Perez [EMAIL
As Matt said there is no specalised tool for editing Features (Though
textmate is great with Bens bundle).
If you checkout Cucumbers Milestone 0.2 you will notice ' Provide a
REST/AtomPub interface to Cucumber'. The idea of having some sort of
wiki interface is something thats in the works for
oh, I hadn't known there was a rspec-rails gem. Thanks
On 11/7/08, Fernando Perez [EMAIL PROTECTED] wrote:
Greg Hauptmann wrote:
Hi,
I've got the rspec gem installed, as well as the two plugins rspec
rspec-rails. I can't remember which is actual used and which isn't
for my rails app when
--
Sent from my mobile device
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
(woops - full email below)
Hi,
My rails migrations / mysql database uses Decimal and I've noticed in
my rspec when I do a ...should eql(5.5) that they're failing as the
expected result here is a float not a decimal. For example see
extract below:
expected 6.5, got
There's my C roots showing. :) That should be BigDecimal.new('5.5'), of
course.
On Fri, Nov 7, 2008 at 3:47 PM, Mark Wilden [EMAIL PROTECTED] wrote:
On Fri, Nov 7, 2008 at 3:24 PM, Greg Hauptmann
[EMAIL PROTECTED] wrote:
expected 6.5, got #BigDecimal:23d8284,'0.65E1',8(8) (using .eql?)
On Fri, Nov 7, 2008 at 3:24 PM, Greg Hauptmann
[EMAIL PROTECTED] wrote:
expected 6.5, got #BigDecimal:23d8284,'0.65E1',8(8) (using .eql?)
How about just expecting BigDecimal('5.5')?
///ark
___
rspec-users mailing list
rspec-users@rubyforge.org
Greg Hauptmann [EMAIL PROTECTED] writes:
Do you mean BigDecimal? Anyway, you should probably be using == instead
of eql.
5.5 == BigDecimal.new('5.5')
= true
5.5.eql? BigDecimal.new('5.5')
= false
eql? is object identity and is generally not what you're after.
Pat
On Fri, Nov 7, 2008 at 3:51 PM, Pat Maddox [EMAIL PROTECTED] wrote:
Greg Hauptmann [EMAIL PROTECTED] writes:
Do you mean BigDecimal? Anyway, you should probably be using == instead
of eql.
5.5 == BigDecimal.new('5.5')
= true
5.5.eql? BigDecimal.new('5.5')
= false
eql? is object
On Fri, Nov 7, 2008 at 5:17 PM, Russell Norris [EMAIL PROTECTED] wrote:
Zach,
Thank you so much. That works for me.
I'm still confused why stubbing all calls to :bar on @foo would allow
@foo.should_receive(:bar).with(:baz) when this doesn't work though. But I
feel like I'm looking a gift
in fact I guess I was fishing for an easier way than this...if one
exists? or is ruby rspec eql() just strict here in terms of
types?
On 11/7/08, Mark Wilden [EMAIL PROTECTED] wrote:
On Fri, Nov 7, 2008 at 3:24 PM, Greg Hauptmann
[EMAIL PROTECTED] wrote:
expected 6.5, got
On Fri, Nov 7, 2008 at 6:24 PM, Greg Hauptmann
[EMAIL PROTECTED] wrote:
(woops - full email below)
Hi,
My rails migrations / mysql database uses Decimal and I've noticed in
my rspec when I do a ...should eql(5.5) that they're failing as the
expected result here is a float not a decimal.
On Fri, Nov 7, 2008 at 9:24 AM, aidy lewis [EMAIL PROTECTED] wrote:
The customer is not happy about writing Stories in a text editor.
Has anyone else experienced this? Is anyone using a wiki, spreadsheet,
or word document and automatically converting to a text file?
As Aslak mentioned there
On Fri, Nov 7, 2008 at 9:12 PM, Greg Hauptmann
[EMAIL PROTECTED] wrote:
yep - this was recommended on forums over float - why?
You are in for a lot of headaches in you application resorting to
decimal fields in the database, since it restores them as BigDecimals.
It sucks to deal with
yep - this was recommended on forums over float - why?
On Sat, Nov 8, 2008 at 11:48 AM, Zach Dennis [EMAIL PROTECTED] wrote:
On Fri, Nov 7, 2008 at 6:24 PM, Greg Hauptmann
[EMAIL PROTECTED] wrote:
(woops - full email below)
Hi,
My rails migrations / mysql database uses Decimal and I've
On Fri, Nov 7, 2008 at 8:53 PM, Josh Knowles [EMAIL PROTECTED] wrote:
On Fri, Nov 7, 2008 at 9:24 AM, aidy lewis [EMAIL PROTECTED] wrote:
The customer is not happy about writing Stories in a text editor.
Has anyone else experienced this? Is anyone using a wiki, spreadsheet,
or word document
Greg Hauptmann [EMAIL PROTECTED] writes:
in fact I guess I was fishing for an easier way than this...if one
exists? or is ruby rspec eql() just strict here in terms of
types?
On 11/7/08, Mark Wilden [EMAIL PROTECTED] wrote:
On Fri, Nov 7, 2008 at 3:24 PM, Greg Hauptmann
[EMAIL
thanks Pat - yes I missed it when reading your email - I'd been using
.eql for everythingthanks
On Sat, Nov 8, 2008 at 2:10 PM, Pat Maddox [EMAIL PROTECTED] wrote:
Greg Hauptmann [EMAIL PROTECTED] writes:
in fact I guess I was fishing for an easier way than this...if one
exists? or is
Hello my fellow RSpeckers,
I am using the spec command like this:
spec tokyo_record_spec.rb
And the for some reason the should_raise Rspec command is not
happening with my lambda block:
it should raise a NoSuchAttribute error if the attribute 'name'
hasn't been declared yet
very bizzare but whilst I needed to use this approach to fix one of my
tests, I realised the test before was working without having to make
it a big decimal - go figure :)
it should return last IR when date last interest rate do
On 8 Nov 2008, at 06:29, David Beckwith wrote:
Hello my fellow RSpeckers,
I am using the spec command like this:
spec tokyo_record_spec.rb
And the for some reason the should_raise Rspec command is not
happening with my lambda block:
it should raise a NoSuchAttribute error
47 matches
Mail list logo