Re: [rspec-users] Keeping my integration specs DRY..

2011-07-25 Thread Patrick J. Collins
> Here's an example of my first test, but I'm wondering how I setup the > login routine so I can use it in future specs without repeating the > method. Some sort of - before.each (:login) You can use shared examples... shared_examples_for "any page requiring authentication" do fill_in :l

Re: [rspec-users] Keeping my integration specs DRY..

2011-07-25 Thread Justin Ko
On Fri, Jul 22, 2011 at 1:50 PM, internetchris wrote: > Hi Group, > > I'm finally taking the time to implement tests in some of my old apps. > I'm using Rails 2.3.5, Rspec 1.3.1, Rspec-rails 1.3.3, and capybara. > > Here's an example of my first test, but I'm wondering how I setup the > login rou

[rspec-users] Keeping my integration specs DRY..

2011-07-25 Thread internetchris
Hi Group, I'm finally taking the time to implement tests in some of my old apps. I'm using Rails 2.3.5, Rspec 1.3.1, Rspec-rails 1.3.3, and capybara. Here's an example of my first test, but I'm wondering how I setup the login routine so I can use it in future specs without repeating the method. S

Re: [rspec-users] rspec and Lion?

2011-07-25 Thread David Chelimsky
On Jul 25, 2011, at 3:38 PM, James Cox wrote: > Hey, > > Has anyone used rspec and lion much yet? > > I'm using the Fuubar instafail formatter, and finding that the entire > output of the spec run is buffered till the script execution stops, at > which point it's displayed. Not sure why - it may

[rspec-users] run rspec by hand (without spec command)

2011-07-25 Thread Wilker
Guys, I'm trying to do something a little exotic here, using RSpec to test Objective-C code through MacRuby. I mean the major problems I already solved (how to load Objective-C into ruby, install rspec for native macruby...), but in this case I just can't use the "spec" command, because the ruby co

[rspec-users] rspec and Lion?

2011-07-25 Thread James Cox
Hey, Has anyone used rspec and lion much yet? I'm using the Fuubar instafail formatter, and finding that the entire output of the spec run is buffered till the script execution stops, at which point it's displayed. Not sure why - it may be a failure/feature of the new Terminal.app ? Wondered if

Re: [rspec-users] Adding a folder to my rspec execution path

2011-07-25 Thread Pablo L. de Miranda
OMG, I don't believe that I forget that. Thank you so much Justin. Att, Pablo ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Adding a folder to my rspec execution path

2011-07-25 Thread David Chelimsky
On Jul 25, 2011, at 10:59 AM, Pablo L. de Miranda wrote: > Justin, > > Bellow is my directory tree for spec: > > |-- spec > | |-- controllers > | | `-- site_controller_spec.rb > | |-- factories.rb > | |-- fixtures > | | `-- avatar.jpg > | |-- helpers > | | |-- profile_helper_

Re: [rspec-users] Adding a folder to my rspec execution path

2011-07-25 Thread Justin Ko
On Mon, Jul 25, 2011 at 9:59 AM, Pablo L. de Miranda < pablolmira...@gmail.com> wrote: > Justin, > > Bellow is my directory tree for spec: > > |-- spec > | |-- controllers > | | `-- site_controller_spec.rb > | |-- factories.rb > | |-- fixtures > | | `-- avatar.jpg > | |-- helpers >

Re: [rspec-users] Adding a folder to my rspec execution path

2011-07-25 Thread Pablo L. de Miranda
Justin, Bellow is my directory tree for spec: |-- spec | |-- controllers | | `-- site_controller_spec.rb | |-- factories.rb | |-- fixtures | | `-- avatar.jpg | |-- helpers | | |-- profile_helper_spec.rb | | |-- site_helper_spec.rb | | `-- task_list_helper_spec.rb | |

Re: [rspec-users] Adding a folder to my rspec execution path

2011-07-25 Thread Justin Ko
On Mon, Jul 25, 2011 at 9:03 AM, Pablo L. de Miranda < pablolmira...@gmail.com> wrote: > Hi Justin, > > I'm using RSpec 2.6.0, RSpec-Rails 2.6.1, Capybara 1.0.0 and Rails 3.0.7. > > Att, > > Pablo > ___ > rspec-users mailing list > rspec-users@rubyforge.

Re: [rspec-users] Adding a folder to my rspec execution path

2011-07-25 Thread Pablo L. de Miranda
Hi Justin, I'm using RSpec 2.6.0, RSpec-Rails 2.6.1, Capybara 1.0.0 and Rails 3.0.7. Att, Pablo ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Adding a folder to my rspec execution path

2011-07-25 Thread Justin Ko
On Mon, Jul 25, 2011 at 8:16 AM, Pablo L. de Miranda < pablolmira...@gmail.com> wrote: > Hi guys, > > I'm using RSpec with Capybara, and for that I created the > spec/integration folder. But when I execute the command "bundle exec > rspec spec" RSpec don't execute my files on integration folder. I

[rspec-users] Adding a folder to my rspec execution path

2011-07-25 Thread Pablo L. de Miranda
Hi guys, I'm using RSpec with Capybara, and for that I created the spec/integration folder. But when I execute the command "bundle exec rspec spec" RSpec don't execute my files on integration folder. I need to pass each file to solve this problem. Do you known how I can put the integration folder