Created
December 3, 2010 00:59
-
-
Save mrmemes-eth/726408 to your computer and use it in GitHub Desktop.
RSpec run output. Rubies: 1.8.7p302 and 1.9.2-p0.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(in /Users/voxdolo/dev/decent_exposure) | |
DecentExposure classes extending DecentExposure | |
- should respond to #expose | |
- should respond to #default_exposure | |
DecentExposure.expose | |
- creates a method with the given name | |
- prevents the method from being a callable action | |
- declares the method as a helper method | |
DecentExposure.expose custom exposures | |
- returns the result of the exposed block from the method | |
- memoizes the value of the created method | |
DecentExposure.expose.default_exposure when the default_exposure is overridden | |
- uses the overridden default_exposure | |
DecentExposure.expose.default_exposure with named arguments | |
- makes the named arguments available | |
Rails' integration: DecentExposure.expose | |
- is available to ActionController::Base | |
Rails' integration: DecentExposure within descendant controllers | |
- inherits the default_exposure | |
- allows you to override the default_exposure | |
- does not override the default in ancestors | |
Rails' integration: DecentExposure.default_exposure | |
- is available to ActionController::Base | |
Rails' integration: DecentExposure.default_exposure when no collection method exists | |
- creates a collection method to scope from (FAILED - 1) | |
Rails' integration: DecentExposure.default_exposure when a collection method exists and the collection can be scoped | |
- uses the existing collection method | |
Rails' integration: DecentExposure.default_exposure when a collection method exists when the collection can not be scoped | |
- falls back to the singularized constant | |
Rails' integration: DecentExposure.default_exposure when either :resource_id or :id are present in params | |
- calls find with params[:resource_id] on the resource's class | |
Rails' integration: DecentExposure.default_exposure when either :resource_id or :id are present in params when there is no :resource_id in params | |
- calls find with params[:id] on the resource's class | |
Rails' integration: DecentExposure.default_exposure when there are no ids in params | |
- calls new with params[:resouce_name] | |
Rails' integration: DecentExposure when collection name is same as resource name | |
- does not create a collection method (FAILED - 2) | |
1) | |
'Rails' integration: DecentExposure.default_exposure when no collection method exists creates a collection method to scope from' FAILED | |
expected [:request, :params, :resource, :protected_instance_variables, :asset_host, :asset_host=, :consider_all_requests_local, :consider_all_requests_local=, :allow_concurrency, :allow_concurrency=, :param_parsers, :param_parsers=, :default_charset, :default_charset=, :logger, :logger=, :resource_action_separator, :resource_action_separator=, :resources_path_names, :resources_path_names=, :request_forgery_protection_token, :request_forgery_protection_token=, :ip_spoofing_check, :ip_spoofing_check=, :optimise_named_routes, :optimise_named_routes=, :use_accept_header, :use_accept_header=, :allow_forgery_protection, :allow_forgery_protection=, :relative_url_root, :relative_url_root=, :request=, :params=, :response, :response=, :session, :session=, :headers, :headers=, :action_name, :action_name=, :process, :send_response, :url_for, :controller_class_name, :controller_name, :controller_path, :session_enabled?, :view_paths, :view_paths=, :prepend_view_path, :append_view_path, :render, :render_to_string, :head, :erase_render_results, :erase_redirect_results, :erase_results, :rewrite_options, :default_url_options, :redirect_to, :redirect_to_full_url, :stale?, :fresh_when, :expires_in, :expires_now, :reset_session, :process_without_filters, :render_without_benchmark, :rescue_responses, :rescue_responses=, :rescue_templates, :rescue_templates=, :rescue_handlers, :rescue_handlers=, :master_helper_module, :master_helper_module=, :helpers_dir, :helpers_dir=, :reset_session_without_flash, :redirect_to_without_flash, :cookie_verifier_secret, :cookie_verifier_secret=, :cache_store, :rendered_action_cache, :rendered_action_cache=, :action_cache_path, :action_cache_path=, :page_cache_directory, :page_cache_directory=, :page_cache_extension, :page_cache_extension=, :perform_caching, :perform_caching=, :_default_exposure, :_default_exposure?, :translate, :t, :localize, :l, :verify_authenticity_token, :verified_request?, :form_authenticity_param, :verifiable_request_format?, :form_authenticity_token, :protect_against_forgery?, :partial_path, :dom_class, :dom_id, :plural_class_name, :singular_class_name, :authenticate_or_request_with_http_digest, :authenticate_with_http_digest, :request_http_digest_authentication, :authenticate_or_request_with_http_basic, :authenticate_with_http_basic, :request_http_basic_authentication, :send_file, :send_data, :expire_page, :cache_page, :expire_action, :fragment_cache_key, :fragment_for, :write_fragment, :read_fragment, :fragment_exist?, :expire_fragment, :cache, :cookies, :perform_action_with_flash, :reset_session_with_flash, :redirect_to_with_flash, :flash, :alert, :alert=, :notice, :notice=, :respond_to, :rescue_with_handler, :handler_for_rescue, :rescue_action, :log_error, :rescue_action_in_public, :render_optional_error_file, :local_request?, :rescue_action_locally, :rescue_action_without_handler, :render_with_benchmark, :active_layout, :process_with_filters, :perform_action_with_filters, :taguri=, :taguri, :to_yaml_style, :to_yaml_properties, :syck_to_yaml, :to_yaml, :__is_a__, :duplicable?, :`, :blank?, :present?, :presence, :to_param, :to_query, :remove_subclasses_of, :subclasses_of, :extended_by, :extend_with_included_modules_from, :instance_values, :instance_variable_names, :copy_instance_variables_from, :metaclass, :metaclass_with_deprecation, :metaclass_without_deprecation, :class_eval, :returning, :with_options, :acts_like?, :html_safe?, :try, :to_json, :as_json, :should_receive, :should_not_receive, :stub!, :stub, :unstub!, :unstub, :stub_chain, :as_null_object, :null_object?, :received_message?, :rspec_verify, :rspec_reset, :require_or_load, :require_dependency, :require_association, :load_with_new_constant_marking, :require, :unloadable, :to_matcher, :mocha_inspect, :__metaclass__, :mocha, :reset_mocha, :stubba_method, :stubba_object, :expects, :stubs, :method_exists?, :describe, :context, :share_examples_for, :shared_examples_for, :share_as, :args_and_options, :add_options, :set_location, :nil?, :===, :=~, :!~, :eql?, :hash, :<=>, :class, :singleton_class, :clone, :dup, :initialize_dup, :initialize_clone, :taint, :tainted?, :untaint, :untrust, :untrusted?, :trust, :freeze, :frozen?, :to_s, :inspect, :methods, :singleton_methods, :protected_methods, :private_methods, :public_methods, :instance_variables, :instance_variable_get, :instance_variable_set, :instance_variable_defined?, :instance_of?, :kind_of?, :is_a?, :tap, :send, :public_send, :respond_to?, :respond_to_missing?, :extend, :display, :method, :public_method, :define_singleton_method, :__id__, :object_id, :to_enum, :enum_for, :should, :should_not, :debugger, :daemonize, :silence_warnings, :enable_warnings, :silence_stderr, :silence_stream, :suppress, :require_library_or_gem, :breakpoint, :==, :equal?, :!, :!=, :instance_eval, :instance_exec, :__send__] to include :resources | |
spec/lib/rails_integration_spec.rb:76:in `block (4 levels) in <top (required)>' | |
2) | |
'Rails' integration: DecentExposure when collection name is same as resource name does not create a collection method' FAILED | |
expected [:request, :params, :equipment, :protected_instance_variables, :asset_host, :asset_host=, :consider_all_requests_local, :consider_all_requests_local=, :allow_concurrency, :allow_concurrency=, :param_parsers, :param_parsers=, :default_charset, :default_charset=, :logger, :logger=, :resource_action_separator, :resource_action_separator=, :resources_path_names, :resources_path_names=, :request_forgery_protection_token, :request_forgery_protection_token=, :ip_spoofing_check, :ip_spoofing_check=, :optimise_named_routes, :optimise_named_routes=, :use_accept_header, :use_accept_header=, :allow_forgery_protection, :allow_forgery_protection=, :relative_url_root, :relative_url_root=, :request=, :params=, :response, :response=, :session, :session=, :headers, :headers=, :action_name, :action_name=, :process, :send_response, :url_for, :controller_class_name, :controller_name, :controller_path, :session_enabled?, :view_paths, :view_paths=, :prepend_view_path, :append_view_path, :render, :render_to_string, :head, :erase_render_results, :erase_redirect_results, :erase_results, :rewrite_options, :default_url_options, :redirect_to, :redirect_to_full_url, :stale?, :fresh_when, :expires_in, :expires_now, :reset_session, :process_without_filters, :render_without_benchmark, :rescue_responses, :rescue_responses=, :rescue_templates, :rescue_templates=, :rescue_handlers, :rescue_handlers=, :master_helper_module, :master_helper_module=, :helpers_dir, :helpers_dir=, :reset_session_without_flash, :redirect_to_without_flash, :cookie_verifier_secret, :cookie_verifier_secret=, :cache_store, :rendered_action_cache, :rendered_action_cache=, :action_cache_path, :action_cache_path=, :page_cache_directory, :page_cache_directory=, :page_cache_extension, :page_cache_extension=, :perform_caching, :perform_caching=, :_default_exposure, :_default_exposure?, :translate, :t, :localize, :l, :verify_authenticity_token, :verified_request?, :form_authenticity_param, :verifiable_request_format?, :form_authenticity_token, :protect_against_forgery?, :partial_path, :dom_class, :dom_id, :plural_class_name, :singular_class_name, :authenticate_or_request_with_http_digest, :authenticate_with_http_digest, :request_http_digest_authentication, :authenticate_or_request_with_http_basic, :authenticate_with_http_basic, :request_http_basic_authentication, :send_file, :send_data, :expire_page, :cache_page, :expire_action, :fragment_cache_key, :fragment_for, :write_fragment, :read_fragment, :fragment_exist?, :expire_fragment, :cache, :cookies, :perform_action_with_flash, :reset_session_with_flash, :redirect_to_with_flash, :flash, :alert, :alert=, :notice, :notice=, :respond_to, :rescue_with_handler, :handler_for_rescue, :rescue_action, :log_error, :rescue_action_in_public, :render_optional_error_file, :local_request?, :rescue_action_locally, :rescue_action_without_handler, :render_with_benchmark, :active_layout, :process_with_filters, :perform_action_with_filters, :taguri=, :taguri, :to_yaml_style, :to_yaml_properties, :syck_to_yaml, :to_yaml, :__is_a__, :duplicable?, :`, :blank?, :present?, :presence, :to_param, :to_query, :remove_subclasses_of, :subclasses_of, :extended_by, :extend_with_included_modules_from, :instance_values, :instance_variable_names, :copy_instance_variables_from, :metaclass, :metaclass_with_deprecation, :metaclass_without_deprecation, :class_eval, :returning, :with_options, :acts_like?, :html_safe?, :try, :to_json, :as_json, :should_receive, :should_not_receive, :stub!, :stub, :unstub!, :unstub, :stub_chain, :as_null_object, :null_object?, :received_message?, :rspec_verify, :rspec_reset, :require_or_load, :require_dependency, :require_association, :load_with_new_constant_marking, :require, :unloadable, :to_matcher, :mocha_inspect, :__metaclass__, :mocha, :reset_mocha, :stubba_method, :stubba_object, :expects, :stubs, :method_exists?, :describe, :context, :share_examples_for, :shared_examples_for, :share_as, :args_and_options, :add_options, :set_location, :nil?, :===, :=~, :!~, :eql?, :hash, :<=>, :class, :singleton_class, :clone, :dup, :initialize_dup, :initialize_clone, :taint, :tainted?, :untaint, :untrust, :untrusted?, :trust, :freeze, :frozen?, :to_s, :inspect, :methods, :singleton_methods, :protected_methods, :private_methods, :public_methods, :instance_variables, :instance_variable_get, :instance_variable_set, :instance_variable_defined?, :instance_of?, :kind_of?, :is_a?, :tap, :send, :public_send, :respond_to?, :respond_to_missing?, :extend, :display, :method, :public_method, :define_singleton_method, :__id__, :object_id, :to_enum, :enum_for, :should, :should_not, :debugger, :daemonize, :silence_warnings, :enable_warnings, :silence_stderr, :silence_stream, :suppress, :require_library_or_gem, :breakpoint, :==, :equal?, :!, :!=, :instance_eval, :instance_exec, :__send__] to include "equipment" | |
spec/lib/rails_integration_spec.rb:152:in `block (3 levels) in <top (required)>' | |
Finished in 0.035542 seconds | |
21 examples, 2 failures |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I see it now....working on a fix.