[rspec-users] RSpec is missing gems even though they are installed

2011-03-11 Thread Rails Learner
Hi Folks, I am getting an error when trying to run my examples in RSpec: Command: spec spec Error: Missing these required gems: rspec-rails >= 1.2.2 cucumber >= 0.2.2 You're running: ruby 1.8.7.334 at /Users/auser/.rvm/rubies/ruby-1.8.7-p334/bin/ruby rubygems 1.6.2 at /Users/auser/.rv

Re: [rspec-users] RSpec Email-Spec Problem

2010-07-14 Thread Rails Learner
I have figure this out. I wanted to share this in case someone is having the same problem. I have taken a different route to test email body: Here is how my example looks now: it "should contain child's first name and last name in email body" do for part in @email.parts if part["Conte

Re: [rspec-users] RSpec Email-Spec Problem

2010-07-14 Thread Rails Learner
Anyone, who can help? -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] RSpec Email-Spec Problem

2010-07-13 Thread Rails Learner
Hi! I am using email-spec gem with rspec to test email. If the email is multipart email then the example fails. The example passes if it's not multipart email. Any advise on how to get it to pass. Here is the error: 'Form Mailer should contain completed enrollment form in email body' FAILED expec

Re: [rspec-users] RSpec Controller Testing - render_templte Issue

2010-07-12 Thread Rails Learner
Curtis j Schofield wrote: > On Mon, Jul 12, 2010 at 9:44 AM, Rails Learner > wrote: >>      # me error: >>      response.should have_selector( 'input', >>                                     :type => 'submit', >>    

[rspec-users] RSpec Controller Testing - render_templte Issue

2010-07-12 Thread Rails Learner
Hi! I am writing controller specs and getting a weird expectation failure. Here is the example. Please read the comments for details: it 'renders children/_show partial' do post :create, :child => @child # The line "response.should render_template('children/_show')" gives #

[rspec-users] Problwm with Webrat and Selenium

2010-03-15 Thread Rails Learner
Hello Everyone, I am having problem running Webrat steps through Firefox using Selenium. I doesn't give me any error, but it never does anything. Well, I am using Windows XP (I know) Here are the gems I am using: cucumber (0.6.2) cucumber-rails (0.3.0, 0.2.4) database_cleaner (0.5.0, 0.4.3) m