Displaying 2 results from an estimated 2 matches for "test_content".
Did you mean:
get_content
2006 Feb 01
3
Testing components
...er; def rescue_action(e) raise e end; end
class NewsControllerTest < Test::Unit::TestCase
def setup
@controller = NewsController.new
@request = ActionController::TestRequest.new
@response = ActionController::TestResponse.new
end
# Replace this with your real tests.
def test_content
get :content
assert_response :success
assert_rendered_file "content"
end
end
But running that gives me:
1) Error:
test_content(NewsControllerTest):
NoMethodError: undefined method `controller_path'' for NewsController:Class
/usr/local/lib/ruby/gems/1.8/g...
2008 Aug 20
1
Facebook javascript (FBJS) library
.....'',{ success: function(){} })
Load Remote
Load: function(response_type, action_path, callbacks, post_parameters)
(FBML/RAW/JSON)
Ajax.Load(''JSON'',''http://...'',{ success:
function(result){console.log(result)} }, {''json'':test_content})
Remote Form
<%= fbjs_form_remote_tag :update => ''a'', :html => { :action => ''
http://inigral.ath.cx:3003/javascript_test/test_helpers_res'' }, :response =>
''RAW'' %>
<input type="hidden" name="...