dear folks,
just wondering if anyone knows the trick for doing controller tests with
facebooker. I have ensured that my facebooker.yml is setup for tests (I have
put in the same information as I use for my development environment which
works fine), and my unit tests are fine. however, when I run my controller
tests (that used to work fine before I facebook''ised my app), I get
errors
like this in my test.log:
Processing CurrenciesController#create (for 0.0.0.0 at 2008-06-25 00:04:24)
[POST]
Session ID:
Parameters: {"action"=>"create",
"controller"=>"currencies",
"currency"=>{"currency_code"=>"GBP",
"currency"=>"pounds"}}
Redirected to
http://www.facebook.com/install.php?api_key=1234123412341234&v=1.0
Filter chain halted as
[#<ActionController::Filters::ClassMethods::SymbolFilter:0x3f1b9ec
@filter=:ensure_application_is_installed_by_facebook_user>]
rendered_or_redirected.
Completed in 0.00010 (10000 reqs/sec) | DB: 0.00000 (0%) | 302 Found
[http://test.host/my_app/currencies/create?currency%5Bcurrency%5D=pounds¤cy%5Bcurrency_code%5D=GBP&format=fbml]
It looks like the test is trying to route via FaceBook and failing. I notice
that it is trying to send the request to http://test.host/my_app. What is
this "test.host" that I see is mentioned in the FaceBooker code?
I''m sure there is a simple fix to this, but Mr. Google has not given it
to
me...
cheers,
Charles de B