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
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:
>
> >>
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
&
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
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(
>>
>> 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
>
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
>
> 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