Re: [rspec-users] testing javascript-heavy websites

2009-01-22 Thread Pat Maddox
On Thu, Jan 22, 2009 at 6:46 PM, Joe Van Dyk wrote: > We're starting to work on some javascript-heavy websites, and even > some flash/flex based ones as well. > > What's the current hotness in automatically testing those types of > websites? Does cucumber hook up to selenium now? I thought I saw

Re: [rspec-users] Cucumber ENV setting in env.rb

2009-01-22 Thread James Byrne
Aslak Hellesøy wrote: > On Thu, Jan 22, 2009 at 10:15 PM, > >> Luis Lavena wrote: >> >> > >> > James: can you tell us if you're using cygwin ruby or native one? >> > >> >> I am not sure. I installed cygwin after I had Ruby on that box. >> > > Than you have a native one. Run ruby --version to be

Re: [rspec-users] testing javascript-heavy websites

2009-01-22 Thread Ben Mabey
On 1/22/09 7:46 PM, Joe Van Dyk wrote: We're starting to work on some javascript-heavy websites, and even some flash/flex based ones as well. For flex see: http://wiki.github.com/aslakhellesoy/cucumber/funfx-and-flex What's the current hotness in automatically testing those types of websit

[rspec-users] testing javascript-heavy websites

2009-01-22 Thread Joe Van Dyk
We're starting to work on some javascript-heavy websites, and even some flash/flex based ones as well. What's the current hotness in automatically testing those types of websites? Does cucumber hook up to selenium now? I thought I saw that webrat did. Any recommended resources? Joe ___

Re: [rspec-users] [Cucumber] Directory Layout

2009-01-22 Thread aslak hellesoy
On Fri, Jan 23, 2009 at 1:05 AM, s.ross wrote: > On Jan 22, 2009, at 3:38 PM, David Chelimsky wrote: > > On Thu, Jan 22, 2009 at 4:51 PM, s.ross wrote: >> >>> I had a relatively flat layout and wanted to group like features together >>> so >>> I made it more hierarchical: >>> >>> features/ >>>

Re: [rspec-users] [Cucumber] Directory Layout

2009-01-22 Thread s.ross
On Jan 22, 2009, at 3:38 PM, David Chelimsky wrote: On Thu, Jan 22, 2009 at 4:51 PM, s.ross wrote: I had a relatively flat layout and wanted to group like features together so I made it more hierarchical: features/ messaging/ main_screen.feature message_page.feature steps/ main_sc

Re: [rspec-users] [Cucumber] Directory Layout

2009-01-22 Thread David Chelimsky
On Thu, Jan 22, 2009 at 4:51 PM, s.ross wrote: > I had a relatively flat layout and wanted to group like features together so > I made it more hierarchical: > > features/ > messaging/ >main_screen.feature >message_page.feature >steps/ > main_screen.rb > messaging_steps.rb >

[rspec-users] [Cucumber] Directory Layout

2009-01-22 Thread s.ross
I had a relatively flat layout and wanted to group like features together so I made it more hierarchical: features/ messaging/ main_screen.feature message_page.feature steps/ main_screen.rb messaging_steps.rb This may be just my boneheadedness, but when I do: cucumbe

Re: [rspec-users] Cucumber ENV setting in env.rb

2009-01-22 Thread aslak hellesoy
On Thu, Jan 22, 2009 at 10:15 PM, James Byrne wrote: > Luis Lavena wrote: > > > > > James: can you tell us if you're using cygwin ruby or native one? > > > > I am not sure. I installed cygwin after I had Ruby on that box. > Than you have a native one. Run ruby --version to be sure. What does it

Re: [rspec-users] Cucumber ENV setting in env.rb

2009-01-22 Thread James Byrne
Luis Lavena wrote: > > James: can you tell us if you're using cygwin ruby or native one? > I am not sure. I installed cygwin after I had Ruby on that box. -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.

Re: [rspec-users] Cucumber ENV setting in env.rb

2009-01-22 Thread Luis Lavena
On Thu, Jan 22, 2009 at 6:09 PM, Andrew Premdas wrote: > I never could get Cygwin to display terminal colors in a consistent way. > You'd probably find it easier to install OSX on your laptop! > http://rubyonwindows.blogspot.com/2009/01/amen-brother.html > One thing you could do is try and run a

Re: [rspec-users] Cucumber ENV setting in env.rb

2009-01-22 Thread Andrew Premdas
I never could get Cygwin to display terminal colors in a consistent way. You'd probably find it easier to install OSX on your laptop! One thing you could do is try and run an XTerm in cygwin perhaps using a minimal window manager like ratpoison. This was the best I was able to manage in getting a

Re: [rspec-users] Cucumber ENV setting in env.rb

2009-01-22 Thread Luis Lavena
On Thu, Jan 22, 2009 at 1:38 PM, James Byrne wrote: > I develop in a heterogeneous environment. When I am working with Ruby > on Rails on my laptop then I am inside the bash shell of cygwin running > under MS-WinXPpro. > > I also happen to favour a light green on dark green default terminal > dis

Re: [rspec-users] Cucumber ENV setting in env.rb

2009-01-22 Thread James Byrne
James Byrne wrote: > > When I run rake features this works exactly as I intended under Linux, Evidently not. Setting the ENV inside env.rb does not influence the rake task display at all. It seems that I must set it externally to cucumber to have effect. -- Posted via http://www.ruby-for

[rspec-users] Cucumber ENV setting in env.rb

2009-01-22 Thread James Byrne
I develop in a heterogeneous environment. When I am working with Ruby on Rails on my laptop then I am inside the bash shell of cygwin running under MS-WinXPpro. I also happen to favour a light green on dark green default terminal display. This renders portions of cucumber's output, under its def

Re: [rspec-users] How best to write repetitive specs

2009-01-22 Thread Zac Zheng
Thanks Zach(great name btw)! I am using it now and it works great. -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] How best to write repetitive specs

2009-01-22 Thread Zach Dennis
On Thu, Jan 22, 2009 at 6:32 AM, Zac Zheng wrote: > I wanted to test that my mailer models all had the correct headers: > subject, to and from fields. > > I had done this by creating this in my spec_helper.rb: > > module TestMailerHelpers > module ClassMethods >def test_basic_headers > i

Re: [rspec-users] [cucumber] Features with multipl e user iterations ¿?

2009-01-22 Thread aidy lewis
Josh, On 22/01/2009, Josh Chisholm wrote: > > Would you avoid the brittleness that "clicks submit link|button" has over > > "I submit". > > There are often many ways of submitting on the same page. So to avoid > tying "I submit" to a particular scenario, I tend to use "I click > 'submit'", wh

Re: [rspec-users] How best to write repetitive specs

2009-01-22 Thread Zac Zheng
How stupid of me! I was looking at the wrong spec file. My 1st problem with no method found has now been solved. If anyone can still recommend a better way of spec'ing these tests, that'd be great. Zac Zheng wrote: > One, I am now receiving 'test_basic_headers' method not found error > after up

[rspec-users] How best to write repetitive specs

2009-01-22 Thread Zac Zheng
I wanted to test that my mailer models all had the correct headers: subject, to and from fields. I had done this by creating this in my spec_helper.rb: module TestMailerHelpers module ClassMethods def test_basic_headers it "subject" do @email.subject.should_not be_blank

Re: [rspec-users] [cucumber] Features with multipl e user iterations ¿?

2009-01-22 Thread Josh Chisholm
> Would you avoid the brittleness that "clicks submit link|button" has over "I > submit". There are often many ways of submitting on the same page. So to avoid tying "I submit" to a particular scenario, I tend to use "I click 'submit'", which doesn't correspond to a link or button specifically, b