Re: [rspec-users] [rspec/tm] When running the textmate bundle hook using command-r I get an error about missing rubygems

2009-03-12 Thread David Chelimsky
On Sat, Mar 7, 2009 at 3:03 PM, Nathaniel Brown wrote: > I get the following error using both edge version of the TM bundle and > rspec/rspec-rails in vendor/plugins. > > /Users/nshb/Library/Application Support/TextMate/Bundles/ > RSpec.tmbundle/Support/lib/spec/mate.rb:2:in `require': No such fil

Re: [rspec-users] Rails 2.2.2 Problem - button_to_function - nil.with_output_buffer

2009-03-12 Thread David Chelimsky
On Sat, Mar 7, 2009 at 10:49 AM, karmacoma wrote: > Hi, > I am in the process of upgrading my rails application to be compatible > with rails 2.2.2. All is going well apart from a few remaining issues. > > My problem is: I am experiencing a test failure with what seems to be > related to the "with

Re: [rspec-users] How do you use pending in RSpec?

2009-03-12 Thread Scott Taylor
Bill Venners wrote: Hi Aslak and Scott, Thanks for your replies. I have a couple quick follow up questions. On Thu, Mar 12, 2009 at 3:05 PM, aslak hellesoy wrote: On Thu, Mar 12, 2009 at 10:50 PM, Bill Venners wrote: Hi All, I've been working on BDD support in a test framework for

Re: [rspec-users] How do you use pending in RSpec?

2009-03-12 Thread Bill Venners
Hi Aslak and Scott, Thanks for your replies. I have a couple quick follow up questions. On Thu, Mar 12, 2009 at 3:05 PM, aslak hellesoy wrote: > > > On Thu, Mar 12, 2009 at 10:50 PM, Bill Venners wrote: >> >> Hi All, >> >> I've been working on BDD support in a test framework for Scala >> imagin

Re: [rspec-users] How do you use pending in RSpec?

2009-03-12 Thread Scott Taylor
On Mar 12, 2009, at 5:50 PM, Bill Venners wrote: Hi All, I've been working on BDD support in a test framework for Scala imaginatively called ScalaTest, and I want to add support for the notion of pending examples. I see three different "forms" of pending in RSpec, and I'm curious to hear which

Re: [rspec-users] How do you use pending in RSpec?

2009-03-12 Thread aslak hellesoy
On Thu, Mar 12, 2009 at 10:50 PM, Bill Venners wrote: > Hi All, > > I've been working on BDD support in a test framework for Scala > imaginatively called ScalaTest, and I want to add support for the Very cool! > > notion of pending examples. I see three different "forms" of pending > in RSpec

[rspec-users] How do you use pending in RSpec?

2009-03-12 Thread Bill Venners
Hi All, I've been working on BDD support in a test framework for Scala imaginatively called ScalaTest, and I want to add support for the notion of pending examples. I see three different "forms" of pending in RSpec, and I'm curious to hear which ones RSpec users find most useful. The three forms a

Re: [rspec-users] Run rake spec with a halt-on-errors mode?

2009-03-12 Thread Zach Dennis
On Thu, Mar 12, 2009 at 3:38 AM, Anton wrote: > Hello everybody! > > I am using rspec for quite a time now, and it is really a great tool! > > The only thing that I haven't figured out is how to set the spec > runner to a halt-on-error mode. For example a lot of browser tests > depend on Google ma

Re: [rspec-users] rspec 1.1.99.12, Rails 2.3.1, undefined method `rspec_options='

2009-03-12 Thread David Chelimsky
On Sun, Mar 8, 2009 at 6:19 PM, José Gomes Jr. wrote: > Hi David, all: > > I recently upgraded to Rails 2.3.1RC2 (Ubuntu 8.10, ruby 1.8.7 > (2008-08-11 patchlevel 72) [i486-linux]) and have been dilligently > following the instructions for upgrading rspec and rspec-rails > according to:  http://wi

[rspec-users] rspec 1.1.99.12, Rails 2.3.1, undefined method `rspec_options='

2009-03-12 Thread José Gomes Jr .
Hi David, all: I recently upgraded to Rails 2.3.1RC2 (Ubuntu 8.10, ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]) and have been dilligently following the instructions for upgrading rspec and rspec-rails according to: http://wiki.github.com/dchelimsky/rspec/rails-with-rspec-gems. and when I r

[rspec-users] Rails 2.2.2 Problem - button_to_function - nil.with_output_buffer

2009-03-12 Thread karmacoma
Hi, I am in the process of upgrading my rails application to be compatible with rails 2.2.2. All is going well apart from a few remaining issues. My problem is: I am experiencing a test failure with what seems to be related to the "with_output_buffer" method found in "lib/action_view/ helpers/capt

[rspec-users] [rspec/tm] When running the textmate bundle hook using command-r I get an error about missing rubygems

2009-03-12 Thread Nathaniel Brown
I get the following error using both edge version of the TM bundle and rspec/rspec-rails in vendor/plugins. /Users/nshb/Library/Application Support/TextMate/Bundles/ RSpec.tmbundle/Support/lib/spec/mate.rb:2:in `require': No such file to load -- rubygems (LoadError) from /Users/nshb/Library/Applic

[rspec-users] Run rake spec with a halt-on-errors mode?

2009-03-12 Thread Anton
Hello everybody! I am using rspec for quite a time now, and it is really a great tool! The only thing that I haven't figured out is how to set the spec runner to a halt-on-error mode. For example a lot of browser tests depend on Google maps and if I have no internet connection none of them makes

Re: [rspec-users] Presentation Testing and CSS ids

2009-03-12 Thread Phlip
James Byrne wrote: As a side issue, in getting the input box ids to work with label ids as I specified in the templates, I discovered that I had misread the FormHelper api. I uncovered my mistake by writing a few tests to exercise this feature as Rails own test/form_helper_test.rb did not.

Re: [rspec-users] Presentation Testing and CSS ids

2009-03-12 Thread James Byrne
Andrew Premdas wrote: > The key phrase is semantic meaning. Its good to use CSS to give semantic > meaning to things that appear on web pages. Not only can these id's or > classes be useful for using with screen readers, they should be stable > things that don't change even if the design of the pag

Re: [rspec-users] How to dummy a DB adapter?

2009-03-12 Thread Bart Zonneveld
On 11-mrt-2009, at 19:02, James Byrne wrote: I am thinking about simply opening SQLiteAdapter and overriding the adapter_name method to some arbitrary value for the test. However, it occurs to me that there are probably better ways to do what I am trying to accomplish so I welcome any sugge

Re: [rspec-users] [cucumber] accessing session variables

2009-03-12 Thread Matt Wynne
On 11 Mar 2009, at 18:52, Balint Erdi wrote: Hey, I have the following simple scenario and the step definitions: Scenario: Create album Given I am logged in as "pepito" When I go to my profile page ... Given /^the user (.*) exists$/ do |login_name| User.find_by_login(login_name) || Facto