On 31 Mar 2009, at 18:19, David Chelimsky wrote:
Autotest sucks. If we have too many tests, it runs them all, and
this slows
us down.
Or, conversely, autotest is awesome if you take the time to learn
how to use it:
http://blog.davidchelimsky.net/2008/3/5/limiting-scope-of-autotest
Th
Hi Sarah,
I will take a look in the peepcode videos.
Thank you,
Pablo Lacerda de Miranda
pablolmira...@gmail.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
There are some great peepcode screencasts, if you like that kind of thing:
http://peepcode.com/products/rspec-basics
http://peepcode.com/products/rspec-mocks-and-models
http://peepcode.com/products/rspec-controllers-and-tools
Also the book is coming out it's in beta now,
http://www.pragprog.com/t
On Tue, Mar 31, 2009 at 2:19 PM, Fernando Perez wrote:
>> Please be careful when making absolute statements like this. First of
>> all, even "just a bug reporting tool" adds tremendous value for the
>> customer, because your catching bugs before they make it to
>> production.
> Value is what a cus
Hi Fernando,
Are know, or have, some material ( tutorial, article, etc.. ) to recommend
me?
Att,
Pablo Lacerda de Miranda
Graduando Sistemas de Informação
Universidade Estadual de Montes Claros
pablolmira...@gmail.com
___
rspec-users mailing list
rspec-
FYI: I did confirm the problem was the RSpec issue Aslak mentioned. I
did not see a nice solution without messing around with the RSpec gem,
and am I familiar enough with the RSpec code to patch it at this time.
I ended up throwing a constant in my support/env.rb file and testing
for this
On Tue, Mar 31, 2009 at 12:54 PM, Fernando Perez wrote:
>> What is the full expression? i.e. what is it that should be false (or
>> nil)?
>
> Basically:
>
> def is_it_cool?
> find(blabla, :conditions => 'coolness > 1000')
> end
>
> In order to stay consistent and as the question mark suggests tha
> Please be careful when making absolute statements like this. First of
> all, even "just a bug reporting tool" adds tremendous value for the
> customer, because your catching bugs before they make it to
> production.
Value is what a customer is something he is ready to pay more money for.
Well, w
Pablo L. de Miranda wrote:
> Hi guys,
> Someone know some good introduction to rspec, I`m wanting to use Rspec
> with
> my Rails projects, but I don't found a good introduction.
>
>From my own experience:
Write specs for your models and their class / instance methods. If you
find yourself stru
> What is the full expression? i.e. what is it that should be false (or
> nil)?
Basically:
def is_it_cool?
find(blabla, :conditions => 'coolness > 1000')
end
In order to stay consistent and as the question mark suggests that true
or false will be returned, I have updated my method too:
def
David Chelimsky wrote:
Or, conversely, autotest is awesome if you take the time to learn how to use it:
http://blog.davidchelimsky.net/2008/3/5/limiting-scope-of-autotest
Even with -f, after it ran our most recently changed test...
...it started the grand wazoo test batch.
Pass! I can just
> Or, conversely, autotest is awesome if you take the time to learn how to
> use it:
>
> http://blog.davidchelimsky.net/2008/3/5/limiting-scope-of-autotest
Well, I find it easier to simply type:
$ rake spec
Then depending on what failed I will from time to time run a single spec
file:
$ spec
On Tue, Mar 31, 2009 at 5:39 AM, Fernando Perez wrote:
> Fernando Perez wrote:
>> Hi,
>>
>> Today is a big day. I officially transitioned from manually testing by
>> clicking around in my app, to automated testing with RSpec + Autotest.
>
> 6 months since my initial post, what happened in between?
aidy lewis wrote:
What editor are you then proposing? Or are you saying that all current
editors lag behind XP practices?
http://www.oreillynet.com/onlamp/blog/2008/05/dynamic_languages_vs_editors.html
___
rspec-users mailing list
rspec-users@rubyfo
On Tue, Mar 31, 2009 at 4:39 AM, Fernando Perez wrote:
> Fernando Perez wrote:
>> Hi,
>>
>> Today is a big day. I officially transitioned from manually testing by
>> clicking around in my app, to automated testing with RSpec + Autotest.
>
> 6 months since my initial post, what happened in between?
Aslak,
Thanks! It is nice to at least know where the problem is. I am
actually using Cucumber in a Merb project so the Rails solution does
not help, but I will look for another workaround and post if I find
something.
Mark Lynn
Sabado Technologies
On Mar 31, 2009, at 11:56 AM, aslak h
Hi Phlip,
On 31/03/2009, Phlip wrote:
> Our editor support for TDD also sucks. It should run the most recently
> edited test cases, nearly automatically. Everyone swears by Textmate, and it
> simply can't do that. Then, the Java-based editors also can't do it!
What editor are you then proposing
On Tue, Mar 31, 2009 at 12:11 PM, Fernando Perez wrote:
>
>>> Do I have to rewrite my return values to always return true or false?
>> No, but you may have to use different matchers. What are you using?
>
> I use: should be_false
>
> Rspec complains it receives nil when it is expecting false.
As
On Tue, Mar 31, 2009 at 12:16 PM, Phlip wrote:
> Fernando Perez wrote:
>
>> As a habit I like to abuse of the save button even if I only corrected
>> some typos in comments, or changed the indentation. Suddenly autotest would
>> kick in for nothing.
>
> Autotest sucks. If we have too many tests, i
>> Do I have to rewrite my return values to always return true or false?
> No, but you may have to use different matchers. What are you using?
I use: should be_false
Rspec complains it receives nil when it is expecting false.
--
Posted via http://www.ruby-forum.com/.
___
Hi guys,
Someone know some good introduction to rspec, I`m wanting to use Rspec with
my Rails projects, but I don't found a good introduction.
Att,
Pablo Lacerda de Miranda
pablolmira...@gmail.com
___
rspec-users mailing list
rspec-users@rubyforge.org
h
On Tue, Mar 31, 2009 at 1:10 PM, Zach Dennis wrote:
> On Tue, Mar 31, 2009 at 5:39 AM, Fernando Perez wrote:
>> Fernando Perez wrote:
>>> Hi,
>>>
>>> Today is a big day. I officially transitioned from manually testing by
>>> clicking around in my app, to automated testing with RSpec + Autotest.
>
Den 31. mars. 2009 kl. 18.34 skrev "Colfer, Brian"
:
What about variable.nil? == true
No, that will not raise anything.
x.should == nil
Or
X.should be_nil
Ditto for false and true.
What have you been trying?
Aslak
Sent from Brian's iPhone
On Mar 31, 2009, at 9:26 AM, "Fernando Perez"
Mark Lynn wrote:
When I use Aslak's version of Treetop as Joseph suggested, this does
get rid of the polyglot error. However, I still get the following when
running from the command line:
$ cucumber -r features/steps -r features/support/env.rb
features/plain/user_home_page.feature
/Library/
Fernando Perez wrote:
As a habit I like to abuse of the save button even if I only corrected
some typos in comments, or changed the indentation. Suddenly autotest
would kick in for nothing.
Autotest sucks. If we have too many tests, it runs them all, and this slows us
down.
Our editor suppo
On Tue, Mar 31, 2009 at 11:08 AM, Fernando Perez wrote:
> Hi,
>
> I just ran into this issue. I have a method that returns: false, true,
> nil or an object.
>
> This method is used by another method to test for true/false. In Ruby
> that's easy to handle as nil and false evaluate to false, and eve
On Mar 31, 2009, at 12:08 PM, Fernando Perez wrote:
Hi,
I just ran into this issue. I have a method that returns: false, true,
nil or an object.
This method is used by another method to test for true/false. In Ruby
that's easy to handle as nil and false evaluate to false, and
everything
els
On Tue, Mar 31, 2009 at 5:22 PM, Mark Lynn wrote:
>
> When I use Aslak's version of Treetop as Joseph suggested, this does get
> rid of the polyglot error. However, I still get the following when running
> from the command line:
>
> $ cucumber -r features/steps -r features/support/env.rb
> featur
What about variable.nil? == true
Sent from Brian's iPhone
On Mar 31, 2009, at 9:26 AM, "Fernando Perez"
wrote:
Hi,
I just ran into this issue. I have a method that returns: false, true,
nil or an object.
This method is used by another method to test for true/false. In Ruby
that's easy to
Hi,
I just ran into this issue. I have a method that returns: false, true,
nil or an object.
This method is used by another method to test for true/false. In Ruby
that's easy to handle as nil and false evaluate to false, and everything
else evaluates to true, but RSpec seems to expect an exact va
When I use Aslak's version of Treetop as Joseph suggested, this does
get rid of the polyglot error. However, I still get the following when
running from the command line:
$ cucumber -r features/steps -r features/support/env.rb features/plain/
user_home_page.feature
/Library/Ruby/Site/1.8/r
Joseph,
Thanks - treetop did get me past the previous error message. Now, I get
$ cucumber -r features/support/env.rb -r features/support/plain.rb -r
features/steps features/plain
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`gem_original_require': no such file to load -- feature
On Tue, Mar 31, 2009 at 2:06 PM, Kevin Olbrich wrote:
> In Cucumber...
> Is there a simple way to find out what file a scenario is defined in?
>
No, but there is a dirty way:
Before do |scenario|
f = scenario.instance_variable_get('@feature')
if f
puts f.file
end
end
The scenario var
> By "getting", do you mean new controllers arrive skinny? Or that you
> have
> refactored the same fat controllers, over time, until they are skinny?
>
> The latter is preferred, because we should not be writing the same sites
> over
> and over again. In theory!
My good ole' fat pig controller
Mark Lynn wrote:
I am using Cucumber 0.2.3 and am having problems running a single
feature. In particular, the cucumber Textmate bundle was not working
so I traced it back and discovered that I could not run single files
or features from the command line either. My setup has the following
line
In Cucumber...
Is there a simple way to find out what file a scenario is defined in?
I'd like to use this information to load a set of fixtures depending on
which feature is being run. So if I'm running the 'login.feature' file,
I'd like to be able to load the set of fixtures under
'/fixtures/log
I am using Cucumber 0.2.3 and am having problems running a single
feature. In particular, the cucumber Textmate bundle was not working
so I traced it back and discovered that I could not run single files
or features from the command line either. My setup has the following
line in cucumber.y
Fernando Perez wrote:
6 months since my initial post, what happened in between?
- My controllers are getting anorexic, and that's good. An action
typically does only 1 call to a model and behind the scenes that model
will make other calls to other models and do some fancy stuff, this used
to
Great. Thanks!
2009/3/31 aslak hellesoy :
>
>
> On Tue, Mar 31, 2009 at 11:34 AM, Josh Chisholm
> wrote:
>>
>> We were using the following style of setting up a world:
>>
>> World do
>> def a_helper
>> ...
>> end
>> end
>>
>> I don't know where I came up with that. I now realise we should ha
On Tue, Mar 31, 2009 at 11:34 AM, Josh Chisholm wrote:
> We were using the following style of setting up a world:
>
> World do
> def a_helper
>...
> end
> end
>
> I don't know where I came up with that. I now realise we should have
> been returning a world class here, but the above style see
We were using the following style of setting up a world:
World do
def a_helper
...
end
end
I don't know where I came up with that. I now realise we should have
been returning a world class here, but the above style seems to be
supported. Is it?
Anyway, we got away with it so far. And it
Fernando Perez wrote:
> Hi,
>
> Today is a big day. I officially transitioned from manually testing by
> clicking around in my app, to automated testing with RSpec + Autotest.
6 months since my initial post, what happened in between?
- My controllers are getting anorexic, and that's good. An act
Submitted bug :
https://rspec.lighthouseapp.com/projects/16211-cucumber/tickets/270-background-transactions-and-xx
Put some features and output in a gist that show this bug, hope its
sufficient.
All best
Andrew
2009/3/30 aslak hellesoy
>
>
> 2009/3/30 Andrew Premdas
>
> Seem to be getting a
43 matches
Mail list logo