On Wed, Apr 22, 2009 at 7:25 AM, Amos King wrote:
> I wasn't thinking about a gun. I was just wondering if there is some
> underlying reason that I'm missing. Is there a background structure
> that I'm not grasping? Is there a huge piece of functionality that
> I'm missing? Is it faster than T
On Thu, Apr 23, 2009 at 12:34 AM, Joaquin Rivera Padron
wrote:
> ok, let's say:
>
> Then /should see "(.+)"/ do |text|
># a binary step, easily negable
> end
>
> Then /I deny some steps/ do
> # really not so readable
> Not Then "should see \"your are not log in\""
>
> Then "some other st
I'm no mathematician, but perhaps there's some notation from set
theory that could be helpful?
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
> (on a aside note: what would examples look like if both ideas get
> implemented? I'm afraid it'll be confusing.)
>
> > > I agree that in defining the rules that define the behaviour those
> > > situations are equivalent.
> > >
> > > However, as the examples _are the tests_ we need both as we need
I'm gonna chime in with David, but I'll try to be brief.
To us programmers, the distinction between Test::Unit/Shoulda and rspec
seems trivial. There are situations (usually?) where we want to review the
requirements with our "customers" and gain a shared understanding of what
the software does.
Thanks, I'll check out both options. -Stephanie
On Apr 22, 4:37 pm, David Chelimsky wrote:
> On Wed, Apr 22, 2009 at 4:06 PM, stephanie wrote:
> > Hi,
>
> > I am writing a rspec script to use with selenium-client. I would like
> > to pass the script some custom arguments in the command line to
+1. I like it.
--
John Goodsen RADSoft / Better Software Faster
jgood...@radsoft.comLean/Agile/XP/Scrum Coaching and Training
http://www.radsoft.com Ruby on Rails and Java Solutions
On Wed, Apr 22, 2009 at 4:22 PM, James Byrne wrote:
> David Chelimsky wrot
On Wed, Apr 22, 2009 at 4:06 PM, stephanie wrote:
> Hi,
>
> I am writing a rspec script to use with selenium-client. I would like
> to pass the script some custom arguments in the command line to change
> a few test settings in the script. However, rspec gives errors when I
> pass arguments to the
Tim Walker wrote:
Howdy,
Want to use the Background feature support and was curious if text
mate support for it was coming or I could get a pointer on how to do
text highlighting for "Background" was able to edit it as a Snippet
but not sure how to make the syntax highlighting work.
Many thanks
On 22 Apr 2009, at 17:52, Andrew Vit wrote:
On Apr 22, 2009, at 4:25 AM, Amos King wrote:
I wasn't thinking about a gun. I was just wondering if there is some
underlying reason that I'm missing. Is there a background structure
that I'm not grasping? Is there a huge piece of functionality t
On Wed, Apr 22, 2009 at 6:37 PM, David Chelimsky wrote:
> On Wed, Apr 22, 2009 at 4:06 PM, stephanie wrote:
>> Hi,
>>
>> I am writing a rspec script to use with selenium-client. I would like
>> to pass the script some custom arguments in the command line to change
>> a few test settings in the sc
John Goodsen wrote:
I definitely prefer the range solution over the others.
I agree, it makes sense and is simple IMO.
On Wed, Apr 22, 2009 at 2:14 AM, aslak hellesoy
mailto:aslak.helle...@gmail.com>> wrote:
This is actually one of the best I've seen so far. However it
doesn't sca
> sorry.. the first point.. you're right this feature is to do with tables
> too, however this feature is orthogonal to the other one, so I decided to
> start a new thread ... I hope that was right.
Sure, just wanted to make sure you'd seen the other thread.
(on a aside note: what would example
ok, let's say:
Then /should see "(.+)"/ do |text|
# a binary step, easily negable
end
Then /I deny some steps/ do
# really not so readable
Not Then "should see \"your are not log in\""
Then "some other step that holds"
# another way of saying it bad
But Not Then "should receive inf
My initial approach to this (when I hit it in my work) was to get around
this problem by catching the whole row from the example in the
Before(scenario) filter, putting it into a well known member @data, so all
steps have access to it.
The problem with this is that it is then implicit which fields
Hi Kero..
I agree that in defining the rules that define the behaviour those
situations are equivalent.
However, as the examples _are the tests_ we need both as we need to test
both those scenarios so the testers have confidence the feature is working
in all situations.
It's being a really good
sorry.. the first point.. you're right this feature is to do with tables
too, however this feature is orthogonal to the other one, so I decided to
start a new thread ... I hope that was right.
Cheers
Nigel
2009/4/23 Nigel Thorne
> Hi Kero..
>
> I agree that in defining the rules that define th
On Wed, Apr 22, 2009 at 2:05 PM, Brian Takita wrote:
> On Wed, Apr 22, 2009 at 9:59 AM, David Chelimsky wrote:
>> On Wed, Apr 22, 2009 at 11:35 AM, Brian Takita
>> wrote:
>>> On Wed, Apr 22, 2009 at 9:34 AM, Brian Takita
>>> wrote:
On Wed, Apr 22, 2009 at 7:28 AM, Amos King wrote:
>
On Wed, Apr 22, 2009 at 9:59 AM, David Chelimsky wrote:
> On Wed, Apr 22, 2009 at 11:35 AM, Brian Takita wrote:
>> On Wed, Apr 22, 2009 at 9:34 AM, Brian Takita wrote:
>>> On Wed, Apr 22, 2009 at 7:28 AM, Amos King wrote:
Thanks, David.
I do often read the rspec list because of t
Hi,
I am writing a rspec script to use with selenium-client. I would like
to pass the script some custom arguments in the command line to change
a few test settings in the script. However, rspec gives errors when I
pass arguments to the script because rspec does not expect them. Is
there any way I
David Chelimsky wrote:
> On Wed, Apr 22, 2009 at 2:09 PM, James Byrne
> wrote:
� � � (Spec::Expectations::ExpectationNotMetError)
>> Rates"
>> WDYT?
> I like the idea, though I think it's helpful to also have the strings
> in the case of String objects. But having the class and object id
> w
Joe Van Dyk wrote:
> Is it possible to have a scenario where you are testing the
> interaction between two different session?
Not sure if this is exactly what you need, but I found this technique to
be very handy:
http://erikonrails.snowedin.net/?p=159
It involves mixing in a method to Actio
David Chelimsky wrote:
> I like the idea, though I think it's helpful to also have the strings
> in the case of String objects. But having the class and object id
> would really help tell the story we're looking for.
The relationship between "#>" and the
object's id is rather bizarre.
irb(main)
- Original Message
> From: David Chelimsky
> Shared examples don't support parameterization, but macros do. Try
> something like this:
>
> module Macros
> def shows_yearly_archive_for(requests={})
[...]
> end
> end
>
> describe SomeController do
> extend Macros
> shows_yearl
On Wed, Apr 22, 2009 at 2:09 PM, James Byrne wrote:
> David Chelimsky wrote:
>> On Wed, Apr 22, 2009 at 1:45 PM, James Byrne
>> wrote:
>>> this worked:
>>> I am not throwing out RSpec or using it any less. �I just had to get
>>> � � � � � � got "Bank of Canada: Noon Foreign Exchange
>>> Rates"
>>
From: aslak hellesoy
> Here is an alternative: http://gist.github.com/99376
I'm a fan of simple, which means I'm a fan of this. The only thing I can think
of that would be simpler is this:
* When the arity of the matcher is larger by one than the match
David Chelimsky wrote:
> On Wed, Apr 22, 2009 at 1:45 PM, James Byrne
> wrote:
>> this worked:
>> I am not throwing out RSpec or using it any less. �I just had to get
>> � � � � � � got "Bank of Canada: Noon Foreign Exchange
>> Rates"
>>
>> � � �(equal?: expected object is not the object returned
> In Cucumber I want to remove duplication from my examples tables.
> see http://gist.github.com/99516 for an example of the type of situation I
> am facing.
>
> I would like the second example to be equivalent to the first.
>
> To do this... I need cucumber to read a row in the examples and noti
On Wed, Apr 22, 2009 at 1:45 PM, James Byrne wrote:
> David Chelimsky wrote:
>>
>>
>> The original issue you posted is with the contain matcher, which is in
>> webrat, not rspec. Why it's not working, I'm not quite sure, but if
>> you're going to throw out the baby with the bath water, you might
>
David Chelimsky wrote:
>
>
> The original issue you posted is with the contain matcher, which is in
> webrat, not rspec. Why it's not working, I'm not quite sure, but if
> you're going to throw out the baby with the bath water, you might
> consider figuring out who the parents are :)
>
Yes, I fi
On Wed, Apr 22, 2009 at 12:04 PM, Stephen H. Gerstacker
wrote:
> I have a Rails controller that I am using 'before_filter' on certain actions
> to assign some extra variables. I noticed the 'shared_examples_for' method
> and thought this would be a good way to test that the given actions are
> lo
Problem solved!
Sorry about that, turns out it wasn't an error
Thanks!
On 22 avr, 12:27, Alex wrote:
> Hello everybody !
>
> I have in a view something like this :
>
> <% unless (method_name?(id)) then %>
>
> <%= link_to h(t(:BTN)), new_url_path(id) %>
>
> <%
On Wed, Apr 22, 2009 at 10:04 AM, Stephen H. Gerstacker
wrote:
> I have a Rails controller that I am using 'before_filter' on certain actions
> to assign some extra variables. I noticed the 'shared_examples_for' method
> and thought this would be a good way to test that the given actions are
> lo
On Wed, Apr 22, 2009 at 11:35 AM, Brian Takita wrote:
> On Wed, Apr 22, 2009 at 9:34 AM, Brian Takita wrote:
>> On Wed, Apr 22, 2009 at 7:28 AM, Amos King wrote:
>>> Thanks, David.
>>>
>>> I do often read the rspec list because of the discussions that you
>>> site. The community maybe enough fo
On Wed, Apr 22, 2009 at 11:27 AM, Alex wrote:
> Hello everybody !
>
> I have in a view something like this :
>
>
> <% unless (method_name?(id)) then %>
>
> <%= link_to h(t(:BTN)), new_url_path(id) %>
>
> <% else %>
>
> <%= link_to_function h(t(:BT
I have a Rails controller that I am using 'before_filter' on certain actions
to assign some extra variables. I noticed the 'shared_examples_for' method
and thought this would be a good way to test that the given actions are
loading what they need. I wrote the following:
shared_examples_for 'page
On Apr 21, 2009, at 9:45 AM, Steve Schafer wrote:
On Mon, 20 Apr 2009 12:40:08 -0700, you wrote:
I wrote a blog post that may be helpful.
http://www.patmaddox.com/blog/demeter-is-for-encapsulation
Basically,
when you have structural objects as in this case, demeter isn't
useful.
I agree
On Apr 22, 2009, at 4:25 AM, Amos King wrote:
I wasn't thinking about a gun. I was just wondering if there is some
underlying reason that I'm missing. Is there a background structure
that I'm not grasping? Is there a huge piece of functionality that
I'm missing? Is it faster than Test:Unit o
Newb,
I assume you are working in VisualStudio ... Is it possible to recompile
all of Ruby in this environment? Or is it possible ot recompile your
extension in MingW?
Sorry to the rest of the group ... This thread should be moved to the
Ruby list.
Brian
-Original Message-
From: rspec-
> > Without adding a new feature to Cucumber, I'd probably do
> >
> > Scenario Outline: Religious menus
> > Given the customer is a ""
> > When they ask for the menu
> > Then they should be presented with ""
> >
> > Examples:
> > | Religion | Meats |
> > | Christian | Pork,
On Wed, Apr 22, 2009 at 11:34 AM, Brian Takita wrote:
> On Wed, Apr 22, 2009 at 7:28 AM, Amos King wrote:
>> Thanks, David.
>>
>> I do often read the rspec list because of the discussions that you
>> site. The community maybe enough for me to make the jump. I can't
>> wait to be able to use RSp
On Wed, Apr 22, 2009 at 9:34 AM, Brian Takita wrote:
> On Wed, Apr 22, 2009 at 7:28 AM, Amos King wrote:
>> Thanks, David.
>>
>> I do often read the rspec list because of the discussions that you
>> site. The community maybe enough for me to make the jump. I can't
>> wait to be able to use RSpe
On Wed, Apr 22, 2009 at 11:08 AM, James Byrne wrote:
> David Chelimsky wrote:
>
>> Ruby. Try this in irb:
>>
>> 'this'
>> => "this"
>
> This passes:
>
> assert_equal (expected,
> fx_doc.xpath('//rdf:RDF/xmlns:channel/xmlns:title').to_s,
> "#{expected} not found")
>
>
Hello everybody !
I have in a view something like this :
<% unless (method_name?(id)) then %>
<%= link_to h(t(:BTN)), new_url_path(id) %>
<% else %>
<%= link_to_function h(t(:BTN)), 'return false;' %>
<% end %>
all of this works
On Wed, Apr 22, 2009 at 7:28 AM, Amos King wrote:
> Thanks, David.
>
> I do often read the rspec list because of the discussions that you
> site. The community maybe enough for me to make the jump. I can't
> wait to be able to use RSpec and Test::Unit together as a single
> cohesive framework.
On Wed, Apr 22, 2009 at 11:12 AM, Charles Grindel
wrote:
> I did. BTW, I ended up digging into the issue and posted a patch for the
> issue in the bug listed below. In short, DrbCommandLine.run is returning
> nil even if the running against Drb server succeeds. This causes the logic
> in Spec::
David Chelimsky wrote:
> Ruby. Try this in irb:
>
> 'this'
> => "this"
This passes:
assert_equal (expected,
fx_doc.xpath('//rdf:RDF/xmlns:channel/xmlns:title').to_s,
"#{expected} not found")
This does not:
fx_doc.xpath('//rdf:RDF/xmlns:channel/xmlns:title')
I did. BTW, I ended up digging into the issue and posted a patch for the
issue in the bug listed below. In short, DrbCommandLine.run is returning
nil even if the running against Drb server succeeds. This causes the logic
in Spec::Runner::OptionParser.parse_drb to return false which in turn cause
I definitely prefer the range solution over the others.
On Wed, Apr 22, 2009 at 2:14 AM, aslak hellesoy wrote:
>
>
> This is actually one of the best I've seen so far. However it doesn't scale
> for multiple columns. (Imagine if you have 5 of them - they easily get mixed
> up, or you make a spell
Howdy,
Want to use the Background feature support and was curious if text
mate support for it was coming or I could get a pointer on how to do
text highlighting for "Background" was able to edit it as a Snippet
but not sure how to make the syntax highlighting work.
Many thanks,
Tim
_
On Wed, Apr 22, 2009 at 3:51 PM, Jeff Talbot wrote:
>
> On Wed, Apr 22, 2009 at 1:17 AM, aslak hellesoy
> wrote:
>
>>
>>
>> 2009/4/17 Lenny Marks
>>
>>> I've been doing something similar. I think the benefit of having half the
>>> steps(each can be negated) wins over the small impact it has on s
On Wed, Apr 22, 2009 at 10:02 AM, James Byrne wrote:
>
> When I change the test to:
>
> expected = 'Bank of Canada: Noon Foreign Exchange
> Rates'
> fx_doc.xpath('//rdf:RDF/xmlns:channel/xmlns:title').should =~ expected
>
> Then I see this instead:
>
> expected: "Bank of Canada: Noon Foreign Ex
When I change the test to:
expected = 'Bank of Canada: Noon Foreign Exchange
Rates'
fx_doc.xpath('//rdf:RDF/xmlns:channel/xmlns:title').should =~ expected
Then I see this instead:
expected: "Bank of Canada: Noon Foreign Exchange
Rates",
got: Bank of Canada: Noon Foreign Exchange
This is the step definition:
When /the xml document should have the Bank of Canada title/ do
expected = 'Bank of Canada: Noon Foreign Exchange
Rates'
fx_doc = ForexCASource.new(@xchg_source)
puts fx_doc.xpath('//rdf:RDF/xmlns:channel/xmlns:title')
fx_doc.xpath('//rdf:RDF/xmlns:channel/xmln
2009/4/22 mikej
> I have a select box:
>
>
>– Select Topic –
>Pollution
>
>
> I would like to select the pollution option from the list using
> webrat.
>
> I've tried:
>
> select "Pollution", :from => "temp_aspect[topic_id]"
> select "Pollution"
you should select by the id att
Thanks, David.
I do often read the rspec list because of the discussions that you
site. The community maybe enough for me to make the jump. I can't
wait to be able to use RSpec and Test::Unit together as a single
cohesive framework. I'll keep working my side project with RSpec and
see what idea
On Wed, Apr 22, 2009 at 9:03 AM, Phlip wrote:
> Amos King wrote:
>>
>> I like Shoulda. Sometimes I like plain old Test::Unit. Cucumber
>> gives me a different thought process.
>>
>> I'd just like to hear some thoughts on why RSpec? What does it buy me
>> that I can't get with Shoulda? I just c
well, that was the vague idea I had when asking at first, but I don't think
every multi-should or should_not step can be in general negated,
by the way, Lenny's one have come to be my preferred solution
joaquin
___
rspec-users mailing list
rspec-users@r
I have a select box:
– Select Topic –
Pollution
I would like to select the pollution option from the list using
webrat.
I've tried:
select "Pollution", :from => "temp_aspect[topic_id]"
select "Pollution"
In both cases I receive the error:
The 'Pollution' option was not found
On Wed, Apr 22, 2009 at 6:25 AM, Amos King wrote:
> I wasn't thinking about a gun. I was just wondering if there is some
> underlying reason that I'm missing. Is there a background structure
> that I'm not grasping? Is there a huge piece of functionality that
> I'm missing? Is it faster than T
Amos King wrote:
I like Shoulda. Sometimes I like plain old Test::Unit. Cucumber
gives me a different thought process.
I'd just like to hear some thoughts on why RSpec? What does it buy me
that I can't get with Shoulda? I just can't seem to think in RSpec.
Where is there a good example of RS
On Wed, Apr 22, 2009 at 1:17 AM, aslak hellesoy wrote:
>
>
> 2009/4/17 Lenny Marks
>
>> I've been doing something similar. I think the benefit of having half the
>> steps(each can be negated) wins over the small impact it has on step
>> readability. Personally I started adding stuff like this(per
> On 18 Apr 2009, at 05:08, David Chelimsky wrote:
>> I'm not sure that requiring environment.rb is the right solution
>> because it will be loaded no matter what rake task is invoked, and
>> that is clearly not the intent for all rake tasks.
>>
>> I hate to go back to the ugly mess that was there
On Wed, Apr 22, 2009 at 8:29 AM, Charles Grindel wrote:
> Hi,
>
> I created a ticket for this in Lighthouse
> (https://rspec.lighthouseapp.com/projects/5645/tickets/797-with-rspec-124-autospec-runs-twice).
> However, I wanted to throw this out to the mailing list. Has anyone else
> run into this
Hi,
I created a ticket for this in Lighthouse (
https://rspec.lighthouseapp.com/projects/5645/tickets/797-with-rspec-124-autospec-runs-twice).
However, I wanted to throw this out to the mailing list. Has anyone else
run into this after the 1.2.4 upgrade? Previously on 1.2.2, autospec was
running
I wasn't thinking about a gun. I was just wondering if there is some
underlying reason that I'm missing. Is there a background structure
that I'm not grasping? Is there a huge piece of functionality that
I'm missing? Is it faster than Test:Unit or Shoulda?
Amos(adkron)
On Wed, Apr 22, 2009 at
On 22 Apr 2009, at 01:43, Anthony Broad-Crawford wrote:
I am writing a gem and using RSpec to drive my development.
However, whenever I describe a class within the gems lib I get an
uninitialized constant error. I am placing my folder structure,
spec.rake and first spec below. I feel I
I think it's that RSpec encodes some of the latest BDD into its way of
thinking.
It has a vocabulary that encourages that, so in a way, yes, it's all about
semantics.
Semantics that encourage agile thinking & practice.
Also, it allows you to structure your specs (that become your regression
tests)
68 matches
Mail list logo