Re: [rspec-users] another noob question about stubs

2008-04-30 Thread Patrick Aljord
> You'd need to paste more of your spec and controller action that you're > stubbing for anyone to be of further help. > I think I posted it on my first post, here it is: def open_id_authentication(openid_url) authenticate_with_open_id(openid_url, :required => [:nickname, :email], :optional

Re: [rspec-users] another noob question about stubs

2008-04-29 Thread Patrick Aljord
ok thanks, I still get a "undefined method `successful?'", successful? is a method that is used inside of the block, it's partof the open_id_authentication plugin, any way to include the plugin in the spec so that it recognizes the method? thanks in advance Pat ___

[rspec-users] another noob question about stubs

2008-04-29 Thread Patrick Aljord
I have this function in my controller: def open_id_authentication(openid_url) authenticate_with_open_id(openid_url, :required => [:nickname, :email], :optional => [:fullname]) do |result, identity_url, registration| if result.successful? @user = User.find_or_initialize_by_identi

Re: [rspec-users] noob question for getting true or false from a function

2008-04-29 Thread Patrick Aljord
ok thanks a lot. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] noob question for getting true or false from a function

2008-04-28 Thread Patrick Aljord
Hey all, I have an action that looks like this: def create if using_open_id? open_id_authentication(params[:openid_url]) else password_authentication(params[:email], params[:password]) end end I have a spec that looks like this: it "should login and redirect" do

Re: [rspec-users] [ANN] Lighthouse and Engine Yard sponsorships

2007-11-21 Thread Patrick Aljord
> There is a msys branch of git that is extremely easy to install in > windows from this url: http://code.google.com/p/msysgit/ I tried it > and it seems to work pretty well > +1 With this, Git is perfectly usable on Windows now, there is no reason for not using it on this platform.

Re: [rspec-users] RSpec on Rails 2.0

2007-11-09 Thread Patrick Aljord
ok then sorry. it's all fine. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] RSpec on Rails 2.0

2007-11-09 Thread Patrick Aljord
On Nov 9, 2007 3:40 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: > rails foo > cd foo > rake rails:freeze:edge > ruby script/plugin install svn://rubyforge.org/var/svn/rspec/trunk/rspec > ruby script/plugin install > svn://rubyforge.org/var/svn/rspec/trunk/rspec_on_rails > script/generate rspec >

Re: [rspec-users] RSpec on Rails 2.0

2007-11-08 Thread Patrick Aljord
ok works great :) maybe because I did the scaffold with an old version rspec? (the one from this morning), sounds weird though. anyway, Thanks a lot! ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] RSpec on Rails 2.0

2007-11-08 Thread Patrick Aljord
> Rails edge or 2.0 preview? edge at revision 8117. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] RSpec on Rails 2.0

2007-11-08 Thread Patrick Aljord
Nothing its a fresh project with latest rails edge that i started to learn rspec. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] RSpec on Rails 2.0

2007-11-08 Thread Patrick Aljord
if I nuke the plugin i works: rake db:migrate RAILS_ENV=test (in /home/pat/catalogr) == 2 CreateBrands: migrating == -- create_table(:brands) -> 0.2779s == 2 CreateBrands: migrated (0.2782s) = __

Re: [rspec-users] RSpec on Rails 2.0

2007-11-08 Thread Patrick Aljord
sorry: rake db:migrate RAILS_ENV=test --trace (in /home/pat/catalogr) ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment rake aborted! superclass mismatch for class TestResponse /home/pat/catalogr/vendor/rails/actionpack/lib/action_controller/test_process.r

Re: [rspec-users] RSpec on Rails 2.0

2007-11-08 Thread Patrick Aljord
I did rm -rf both and now I get this: superclass mismatch for class TestResponse ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] RSpec on Rails 2.0

2007-11-08 Thread Patrick Aljord
Ive just svn up and I still get the same error. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] RSpec on Rails 2.0

2007-11-08 Thread Patrick Aljord
I can't get rspec to work with rails edge either, when I do "rake db:migrate RAILS_ENV=test" I get: undefined method `failure_message' for class `Spec::Matchers::Have' So I can't even start working on my project :/ It works without rspec. ___ rspec-use

[rspec-users] error on migration

2007-11-08 Thread Patrick Aljord
Hi all, I'm just getting started with rspec. I'm using trunk rspec with edge rails. I get an error on migration though, here it is: rake db:migrate RAILS_ENV="test" --trace (in /home/pat/railsapp) ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment rake abo