> 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
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
___
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
ok thanks a lot.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
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
> 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.
ok then sorry. it's all fine.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
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
>
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
> 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
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
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) =
__
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
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
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
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
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
17 matches
Mail list logo