[rspec-users] rspec 1.3.2, Rails 2.3.14 - plugins not loading

2011-10-20 Thread Jens-Christian Fischer
Hi there I have a weird situation. I have inherited a project in Rails 1.2.3 that has been upgraded to Rails 2.3.14 (and is running). I have installed Cucumber and Rspec to start to write features/tests for the new code that needs to be written. In my Gemfile, these Gems are loaded: group :test d

Re: [rspec-users] rspec 1.3.2, Rails 2.3.14 - plugins not loading

2011-10-24 Thread Jens-Christian Fischer
thanks jc On 21 Okt., 22:18, Lenny Marks wrote: > On Oct 21, 2011, at 11:05 AM, Andrew Premdas wrote: > > > > > > > > > > > On 21 October 2011 10:26, Matt Wynne wrote: > > >> On 18 Oct 2011, at 15:02, Jens-Christian Fischer wrote: > > >>

Re: [rspec-users] rspec 1.3.2, Rails 2.3.14 - plugins not loading

2011-10-26 Thread Jens-Christian Fischer
our application is wrong" approach, I think I have just successfully eliminated that possibility. cheersjc On 24 Okt., 11:57, Andrew Premdas wrote: > On 24 October 2011 09:12, Jens-Christian Fischer > wrote:> Thanks for all the hints. I'm pretty sure however, that Bundler ist &

Re: [rspec-users] rspec 1.3.2, Rails 2.3.14 - plugins not loading

2011-10-26 Thread Jens-Christian Fischer
Ha - I think I found the problem: In my Gemfile I had: group :test, :cucumber do # , :development (till we work out why plugins don't load with rspec) gem 'rspec-rails', '~> 1.3.4' , :require => 'spec/rails' gem 'rspec', '~> 1.3.2', :require => 'spec' gem "capybara", "0.3.9" gem "cucumber

[rspec-users] stubbing helper methods for View specs

2007-07-06 Thread Jens-Christian Fischer
Hi there I have several view specs, that include the following snippet in their "before" block to stub the methods by acts_as_authenticated before :each do @u = mock_model(User) @u.should_receive(:name).and_return("Hans Muster") template.should_receive(:logged_in?).and_return(

Re: [rspec-users] stubbing helper methods for View specs

2007-07-06 Thread Jens-Christian Fischer
>> >> I don't have enough rspec_fu to deduce where the problem lies.. >> >> >> Any helpers? > > In a nutshell - Rails compiles templates the first time they are > encountered in a given runtime. Combine this with the fact that mock > expectations are cleared out after every example, but the mock >

[rspec-users] Rails 2.0 & rspec edge - not protected_against_forgery?

2007-10-02 Thread Jens-Christian Fischer
er, but it's included dynamically via a "helper_method :protect_against_forgery?" call in request_forgery_protection.rb I have forged the forgery_protection by adding this to my spec_helper.rb def protect_against_forgery? end Probably not the most elegant solution, but for now

Re: [rspec-users] [ANN] Webrat 0.1.0 released - Ruby Acceptance Testing for Web applications

2007-11-30 Thread Jens-Christian Fischer
> > Code is available at: http://svn.eastmedia.net/public/plugins/webrat/ > * Rails integration tests in Test::Unit _or_ > * RSpec stories (using an RSpec version >= revision 2997) I had to add: require 'cgi' require "cgi/session" require 'cgi/session/pstore' require 'action_controller/cgi_ext/c