[rspec-users] [ANN] rspec-rails 1.2.6 Released

2009-04-30 Thread David Chelimsky
rspec-rails version 1.2.6 has been released! Behaviour Driven Development for Ruby on Rails. ### Version 1.2.6 / 2009-04-30 * bug fixes * restored rake tasks for rspec[-rails] as plugins * * *

Re: [rspec-users] script/general rspec_*

2009-04-30 Thread Josh Nichols
If its existing models you're dealing with, you probably will want to add --skip-migration. Just skip over replacing the model. - Josh On Fri, May 1, 2009 at 12:28 AM, David Chelimsky wrote: > On Thu, Apr 30, 2009 at 8:57 AM, Nicholas Van Weerdenburg > wrote: >> On Thu, Apr 30, 2009 at 9:24 AM,

[rspec-users] [ANN] rspec 1.2.6 Released

2009-04-30 Thread David Chelimsky
rspec version 1.2.6 has been released! Behaviour Driven Development for Ruby. Changes: ### Version 1.2.6 / 2009-04-30 * bug fixes * gem actually built with spec executable * * * * * ___

Re: [rspec-users] Partitioning Specs

2009-04-30 Thread David Chelimsky
On Thu, Apr 30, 2009 at 10:09 AM, Nicholas Van Weerdenburg wrote: > Sounds good. > So I could start tagging now, and be forward compatible. > Is there or will there be the equivalent of cucumber.yml for rspec? There isn't now. Another thing on the someday list. > Thanks, > Nick > On Thu, Apr 30,

Re: [rspec-users] script/general rspec_*

2009-04-30 Thread David Chelimsky
On Thu, Apr 30, 2009 at 8:57 AM, Nicholas Van Weerdenburg wrote: > On Thu, Apr 30, 2009 at 9:24 AM, David Chelimsky > wrote: >> >> On Thu, Apr 30, 2009 at 8:19 AM, Nicholas Van Weerdenburg >> wrote: >> > I have started using rspec after generating much of my applications >> > models >> > and con

Re: [rspec-users] [cucumber] Bug introduced in 0.3.1

2009-04-30 Thread Julian Leviston
I have NO idea if this is relevant, but the way you extend worlds has changed, I'm fairly sure. Julian. On 30/04/2009, at 10:15 PM, Lee Hambley wrote: Hi All, I'm new to the list, but a happy cucumber user with a few weeks experience now... a bit of a shock this morning when someone up

Re: [rspec-users] Partitioning Specs

2009-04-30 Thread Nicholas Van Weerdenburg
Sounds good. So I could start tagging now, and be forward compatible. Is there or will there be the equivalent of cucumber.yml for rspec? Thanks, Nick On Thu, Apr 30, 2009 at 10:53 AM, David Chelimsky wrote: > On Thu, Apr 30, 2009 at 9:33 AM, Nicholas Van Weerdenburg > wrote: > > I saw that a

Re: [rspec-users] script/general rspec_*

2009-04-30 Thread Nicholas Van Weerdenburg
On Thu, Apr 30, 2009 at 9:24 AM, David Chelimsky wrote: > On Thu, Apr 30, 2009 at 8:19 AM, Nicholas Van Weerdenburg > wrote: > > I have started using rspec after generating much of my applications > models > > and controllers. Much of the code is plain vanilla scaffolding. > > I accept that this

Re: [rspec-users] submodule rspec and rspec-rails issues

2009-04-30 Thread Amos King
I went back to a plugin. The gem isn't working right now, and their were some others in the irc channel that had the same issue when they uninstalled the system gem. If I change the frozen directory to not have the version number it works, but rails complains. So I did just change the plugin loa

Re: [rspec-users] Help with some basics

2009-04-30 Thread Andrew Timberlake
On Thu, Apr 30, 2009 at 10:04 PM, David Chelimsky wrote: > On Thu, Apr 30, 2009 at 2:55 PM, Andrew Timberlake > wrote: >> It gives me the same error when I run >> rake spec >> spec specs/ >> or >> autospec >> >> It also gives the same error with specs like >> it { should_not be_nil } >> and >> it

Re: [rspec-users] submodule rspec and rspec-rails issues

2009-04-30 Thread David Chelimsky
On Thu, Apr 30, 2009 at 10:05 PM, Amos King wrote: > should I go with the plugin.  It doesn't work as a gem now? I didn't say that :) It still works as a gem (I don't understand why it's not working for you as a gem), *and* I fixed the problem using it as a plugin, so you should be able to use it

Re: [rspec-users] submodule rspec and rspec-rails issues

2009-04-30 Thread Amos King
should I go with the plugin. It doesn't work as a gem now? On Thu, Apr 30, 2009 at 10:04 PM, David Chelimsky wrote: > On Thu, Apr 30, 2009 at 9:55 PM, Amos King wrote: >> frozen as gems and still the same problems. > > The 1.2.6 release should work as a plugin again. > >> >> On Thu, Apr 30, 200

Re: [rspec-users] submodule rspec and rspec-rails issues

2009-04-30 Thread David Chelimsky
On Thu, Apr 30, 2009 at 9:55 PM, Amos King wrote: > frozen as gems and still the same problems. The 1.2.6 release should work as a plugin again. > > On Thu, Apr 30, 2009 at 3:05 PM, Nicholas Van Weerdenburg > wrote: >> On Thu, Apr 30, 2009 at 3:34 PM, Amos King wrote: >>> >>> So why am I requi

Re: [rspec-users] submodule rspec and rspec-rails issues

2009-04-30 Thread Amos King
frozen as gems and still the same problems. On Thu, Apr 30, 2009 at 3:05 PM, Nicholas Van Weerdenburg wrote: > On Thu, Apr 30, 2009 at 3:34 PM, Amos King wrote: >> >> So why am I required to install rspec as a frozen/system gem to work >> with rails?  I would be happy with that if the support fo

Re: [rspec-users] Before and After blocks for individual feature files?

2009-04-30 Thread Julian Leviston
Hey ben, Selenium is slow, and we have a lot of Ajax, so I'm just looking at ways to speed it up. Tags will be my first port of call and splitting out between automated and simulated. It irks me we can't then simply run all our tests with one simple cucumber command -we need two. It'd be ni

Re: [rspec-users] [cucumber] Bug introduced in 0.3.1

2009-04-30 Thread Lee Hambley
Hi Ben, Please see this Gist http://gist.github.com/104711 - note also that it doesn't seem to matter about the dependencies I've got in that file now, they're a recent addition and don't seem to affect this behavior. - Thanks, Lee 2009/4/30 Ben Mabey > Lee Hambley wrote: > >> Hi All, >> >> I

Re: [rspec-users] [cucumber] Bug introduced in 0.3.1

2009-04-30 Thread Ben Mabey
Lee Hambley wrote: Hi All, I'm new to the list, but a happy cucumber user with a few weeks experience now... a bit of a shock this morning when someone upgraded here and happened to jump up to 0.3.1, we're seeing the following output.. I haven't had chance to investigate more, but I will tr

Re: [rspec-users] submodule rspec and rspec-rails issues

2009-04-30 Thread Nicholas Van Weerdenburg
On Thu, Apr 30, 2009 at 3:34 PM, Amos King wrote: > So why am I required to install rspec as a frozen/system gem to work > with rails? I would be happy with that if the support for rails gems > was a little better. I'm stuck to the published gem at that point, or > I have to jump through hoops

Re: [rspec-users] Help with some basics

2009-04-30 Thread David Chelimsky
On Thu, Apr 30, 2009 at 2:55 PM, Andrew Timberlake wrote: > It gives me the same error when I run > rake spec > spec specs/ > or > autospec > > It also gives the same error with specs like > it { should_not be_nil } > and > it { should respond_to(:name) } Those are internal to rspec and I can ass

Re: [rspec-users] Help with some basics

2009-04-30 Thread Andrew Timberlake
It gives me the same error when I run rake spec spec specs/ or autospec It also gives the same error with specs like it { should_not be_nil } and it { should respond_to(:name) } On Thursday, April 30, 2009, David Chelimsky wrote: > On Thu, Apr 30, 2009 at 9:44 AM, Andrew Timberlake > wrote: >>

Re: [rspec-users] submodule rspec and rspec-rails issues

2009-04-30 Thread Amos King
So why am I required to install rspec as a frozen/system gem to work with rails? I would be happy with that if the support for rails gems was a little better. I'm stuck to the published gem at that point, or I have to jump through hoops on every deployment or build box. On Thu, Apr 30, 2009 at 2

Re: [rspec-users] submodule rspec and rspec-rails issues

2009-04-30 Thread Amos King
yes, but when you add it does it. On Thu, Apr 30, 2009 at 1:33 PM, Scott Taylor wrote: > > On Apr 30, 2009, at 2:26 PM, Amos King wrote: > >> I started a brand new rails app and then ran the following. >> >> %>git submodule add git://github.com/aslakhellesoy/cucumber.git >> vendor/plugins/cucumbe

Re: [rspec-users] submodule rspec and rspec-rails issues

2009-04-30 Thread Scott Taylor
On Apr 30, 2009, at 2:26 PM, Amos King wrote: I started a brand new rails app and then ran the following. %>git submodule add git://github.com/aslakhellesoy/cucumber.git vendor/plugins/cucumber %>git submodule add git://github.com/brynary/webrat.git vendor/ plugins/webrat %>git submodule add

Re: [rspec-users] submodule rspec and rspec-rails issues

2009-04-30 Thread David Chelimsky
On Thu, Apr 30, 2009 at 1:26 PM, Amos King wrote: > I started a brand new rails app and then ran the following. > > %>git submodule add git://github.com/aslakhellesoy/cucumber.git > vendor/plugins/cucumber > %>git submodule add git://github.com/brynary/webrat.git vendor/plugins/webrat > %>git subm

[rspec-users] submodule rspec and rspec-rails issues

2009-04-30 Thread Amos King
I started a brand new rails app and then ran the following. %>git submodule add git://github.com/aslakhellesoy/cucumber.git vendor/plugins/cucumber %>git submodule add git://github.com/brynary/webrat.git vendor/plugins/webrat %>git submodule add git://github.com/dchelimsky/rspec.git vendor/plugins

[rspec-users] [cucumber] Bug introduced in 0.3.1

2009-04-30 Thread Lee Hambley
Hi All, I'm new to the list, but a happy cucumber user with a few weeks experience now... a bit of a shock this morning when someone upgraded here and happened to jump up to 0.3.1, we're seeing the following output.. I haven't had chance to investigate more, but I will try to.. this goes away if

Re: [rspec-users] Help with some basics

2009-04-30 Thread David Chelimsky
On Thu, Apr 30, 2009 at 9:44 AM, Andrew Timberlake wrote: > I'm suddenly getting an error on my specs > > /usr/local/lib/ruby/gems/1.8/gems/rspec-1.2.5/lib/spec/example/example_methods.rb:24:in > `description': No description supplied for example declared on > /home/andrew/dev/rhythm/website/spec/

Re: [rspec-users] Partitioning Specs

2009-04-30 Thread Ben Lovell
On Thu, Apr 30, 2009 at 3:33 PM, Nicholas Van Weerdenburg < vanwe...@gmail.com> wrote: > I saw that a couple of days ago- very nice. Will that be added to RSpec? > Also, I suppose I'd have to add tags to the framework myself unless they > included it. > > Thanks, > Nick > > On Thu, Apr 30, 2009 at

Re: [rspec-users] Partitioning Specs

2009-04-30 Thread David Chelimsky
On Thu, Apr 30, 2009 at 9:33 AM, Nicholas Van Weerdenburg wrote: > I saw that a couple of days ago- very nice. Will that be added to RSpec? Sooner or later, yes, but it will be managed through the hash passed to the declarations: describe "something", :tags => [:a,:b] do it "does something", :

[rspec-users] Help with some basics

2009-04-30 Thread Andrew Timberlake
I'm suddenly getting an error on my specs /usr/local/lib/ruby/gems/1.8/gems/rspec-1.2.5/lib/spec/example/example_methods.rb:24:in `description': No description supplied for example declared on /home/andrew/dev/rhythm/website/spec/models/product_template_spec.rb:4 (Spec::Example::NoDescriptionError

Re: [rspec-users] Partitioning Specs

2009-04-30 Thread Nicholas Van Weerdenburg
I saw that a couple of days ago- very nice. Will that be added to RSpec? Also, I suppose I'd have to add tags to the framework myself unless they included it. Thanks, Nick On Thu, Apr 30, 2009 at 10:02 AM, Ben Lovell wrote: > > > On Thu, Apr 30, 2009 at 3:00 PM, Nicholas Van Weerdenburg < > vanw

Re: [rspec-users] [Cucumber 0.2] Failure to use should

2009-04-30 Thread José Valim
Just for reference, whoever have problem with rspec, remarkable and cucumber, try this installation settings: # config/environments/test.rb config.gem "rspec", :lib => false config.gem "rspec-rails", :lib => false config.gem "remarkable_rails", :lib => false # spec/spec_helper.rb require "spec/r

Re: [rspec-users] Partitioning Specs

2009-04-30 Thread Ben Lovell
On Thu, Apr 30, 2009 at 3:00 PM, Nicholas Van Weerdenburg < vanwe...@gmail.com> wrote: > Hi, > I installed Restful Authentication and it placed a lot of specs and > features in cucumber and rspec directories. > > Is there a way frameworks can partition there tests so that "rake spec" > doesn't run

[rspec-users] Partitioning Specs

2009-04-30 Thread Nicholas Van Weerdenburg
Hi, I installed Restful Authentication and it placed a lot of specs and features in cucumber and rspec directories. Is there a way frameworks can partition there tests so that "rake spec" doesn't run all their tests? I've actually switched to authlogic because of this, but was curious. Thanks, N

Re: [rspec-users] shoud error

2009-04-30 Thread Nicholas Van Weerdenburg
That would be it. I got confused between @messenger (StringIO) in Cucumber and @messenger in RSpec (mock) in the RSpec book and though I was looking at a StringIO object. Thanks, Nick On Thu, Apr 30, 2009 at 8:59 AM, David Chelimsky wrote: > On Thu, Apr 30, 2009 at 7:51 AM, Nicholas Van Weerdenbu

Re: [rspec-users] script/general rspec_*

2009-04-30 Thread David Chelimsky
On Thu, Apr 30, 2009 at 8:19 AM, Nicholas Van Weerdenburg wrote: > I have started using rspec after generating much of my applications models > and controllers. Much of the code is plain vanilla scaffolding. > I accept that this is not very BDD, but I'm building a tool that required I > do this. >

[rspec-users] script/general rspec_*

2009-04-30 Thread Nicholas Van Weerdenburg
I have started using rspec after generating much of my applications models and controllers. Much of the code is plain vanilla scaffolding. I accept that this is not very BDD, but I'm building a tool that required I do this. Is there a quick way to generate the test stubs- i.e. the equivalent of th

Re: [rspec-users] shoud error

2009-04-30 Thread David Chelimsky
On Thu, Apr 30, 2009 at 7:51 AM, Nicholas Van Weerdenburg wrote: > Hi, > I had some tests where I accidently used ".shoud" instead of ".should". > There was no error, and all tests passed no matter what. Is the the correct > behaviour or should there be an error if you mispell should? Normally th

[rspec-users] shoud error

2009-04-30 Thread Nicholas Van Weerdenburg
Hi, I had some tests where I accidently used ".shoud" instead of ".should". There was no error, and all tests passed no matter what. Is the the correct behaviour or should there be an error if you mispell should? Thanks, Nick ___ rspec-users mailing lis

Re: [rspec-users] Separation of duties Cucumber and Rspec ... RE: Noob question

2009-04-30 Thread Rick DeNatale
On Wed, Apr 29, 2009 at 5:47 PM, Colfer, Brian wrote: > Cucumber is not built to do rapid BDD ... It is an integration and acceptance > specification exercise system.   Rspec is for development  ... Mocks are an > integral part of the BDD process.  The idea is to partition the system > componen

Re: [rspec-users] [RSPEC] [CUCUMBER] have autotest running *only* the features

2009-04-30 Thread Jean-Michel Garnier
I'll reply to my own question as I have found an "hacked" solution. In Autotest::Rspec (rspec/lib/autotest/rspec-rb) I redefined make_test_cmd like this: def make_test_cmd(files_to_test) # FIXME JM HACK! if ENV['AUTOFEATURE'] =~ /true/i return "#{ruby} -S #{spec_command} #{add_optio

Re: [rspec-users] mocked models' names being overwritten by rspec

2009-04-30 Thread doug livesey
Please ignore me, I'm a drooling moron. :) 2009/4/30 doug livesey > Hi -- I have a model that has a name attribute, and a method I'm speccing > to remove all models from a collection if they have a name that starts with > an underscore. > My problem is that RSpec seems to be overwriting the name

[rspec-users] mocked models' names being overwritten by rspec

2009-04-30 Thread doug livesey
Hi -- I have a model that has a name attribute, and a method I'm speccing to remove all models from a collection if they have a name that starts with an underscore. My problem is that RSpec seems to be overwriting the name attribute, so the spec is failing when (I'm pretty sure) it should be passin

Re: [rspec-users] rake spec - no output

2009-04-30 Thread Rainer Kuhn
Solved. Uninstalled test-unit 2.0.2 and installed test-unit-1.2.3. -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] rake spec - no output

2009-04-30 Thread Donald Duck
rake spec does not seem to be doing anything. Could it be a problem with ruby 1.9? Here is what I did: rails rspec-test cd rspec-test test.rb: config.gem "rspec", :lib => false, :version => ">= 1.2.0" test.rb: config.gem "rspec-rails", :lib => false, :version => ">= 1.2.0" ruby script/generate rsp