Skip to content

Instantly share code, notes, and snippets.

@joshuaclayton
Created September 9, 2009 17:14
Show Gist options
  • Save joshuaclayton/183899 to your computer and use it in GitHub Desktop.
Save joshuaclayton/183899 to your computer and use it in GitHub Desktop.
/Users/joshuaclayton/.rvm/ruby-1.8.6-p383/bin/ruby -I"lib:test" "/Users/joshuaclayton/.rvm/gems/ruby/1.8.6/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/unit/aaws_test.rb" "test/unit/category_test.rb" "test/unit/helpers/item_helper_test.rb" "test/unit/item_listing_test.rb" "test/unit/item_test.rb" "test/unit/presenters/categories_presenter_test.rb" "test/unit/presenters/category_presenter_test.rb" "test/unit/presenters/items_presenter_test.rb" "test/unit/presenters/user_presenter_test.rb" "test/unit/presenters/users_presenter_test.rb" "test/unit/user_sentinel_test.rb" "test/unit/user_test.rb" -v
Loaded suite /Users/joshuaclayton/.rvm/gems/ruby/1.8.6/gems/rake-0.8.7/lib/rake/rake_test_loader
Started
test: AAWS should have correct default settings. (AAWSTest): .
test: AAWS should use the correct URI. (AAWSTest): .
test: Amazon Authentication should occur when finding items. (AAWSTest): .
test: Amazon Authentication should occur when searching items. (AAWSTest): .
test: Amazon Authentication should properly generate signatures with overrides. (AAWSTest): .
test: Amazon Authentication should properly generate signatures. (AAWSTest): .
test: performing a find for ISBN-13 should handle requests with a hyphen. (AAWSTest): .
test: performing a find for ISBN-13 should handle requests without a hyphen. (AAWSTest): .
test: performing a find should default to correct params when attempting a get. (AAWSTest): .
test: performing a search should allow override of SearchIndex. (AAWSTest): .
test: performing a search should default search to Books. (AAWSTest): .
test: performing a search should merge any additional values passed with :query. (AAWSTest): .
test: A categories presenter instance should correctly assign scope. (CategoriesPresenterTest): .
test: A category presenter instance should list all available categories. (CategoryPresenterTest): .
test: A category presenter instance should use method_missing to pick up all other method calls. (CategoryPresenterTest): .
test: A category instance knowing if it's inherently published or not should be published if itself and all parents are published. (CategoryTest): .
test: A category instance knowing if it's inherently published or not should not be inherently published if it is not published. (CategoryTest): .
test: A category instance knowing if it's inherently published or not should not be inherently published if its parent is not published. (CategoryTest): .
test: A category instance knowing the parent category that has flagged it as unpublished should return nil if it's inherently published. (CategoryTest): .
test: A category instance knowing the parent category that has flagged it as unpublished should return self if it's the one that's not published. (CategoryTest): .
test: A category instance knowing the parent category that has flagged it as unpublished should return the first in a list of ancestors that are unpublished. (CategoryTest): .
test: A category instance should know when it's unfilled. (CategoryTest): .
test: A category instance should validate uniqueness of name scoped to parent_id. (CategoryTest): .
test: Category should be a nested set. (CategoryTest): .
test: Category should have an attachment named logo. (CategoryTest): .
test: Category should have many item_listings dependent => destroy. (CategoryTest): .
test: Category should have many items through item_listings. (CategoryTest): .
test: Category should have many published_items through item_listings. (CategoryTest): .
test: Category should require name to be set. (CategoryTest): .
test: reordering siblings should not reorder if a partial list of siblings are supplied. (CategoryTest): .
test: reordering siblings should not reorder if different parents exist. (CategoryTest): .
test: reordering siblings should not reorder if there are no ids passed. (CategoryTest): .
test: reordering siblings should reorder categories if each item in the list is a string. (CategoryTest): .
test: reordering siblings should reorder categories if the list of ids is correct. (CategoryTest): .
test: label_for_asin should handle a blank product group. (ItemHelperTest): .
test: label_for_asin should handle a book. (ItemHelperTest): .
test: label_for_asin should handle everything else other than a book. (ItemHelperTest): .
test: statused_edit_item should return a link. (ItemHelperTest): .
test: statused_edit_item should wrap with del tag if not published. (ItemHelperTest): .
test: An item listing instance should require case sensitive unique value for category_id scoped to item_id. (ItemListingTest): .
test: ItemListing should be able to reorder itself. (ItemListingTest): .
test: ItemListing should belong to category. (ItemListingTest): .
test: ItemListing should belong to item. (ItemListingTest): .
test: ItemListing should have a non-unique index on columns category_idposition. (ItemListingTest): .
test: ItemListing should have a non-unique index on columns item_id. (ItemListingTest): .
test: ItemListing should have a unique index on columns category_iditem_id. (ItemListingTest): .
test: ItemListing should require category_id to be set. (ItemListingTest): .
test: ItemListing should require item_id to be set. (ItemListingTest): .
test: ItemListing should respond to instance method #position. (ItemListingTest): .
test: An item instance should require asin to be set. (ItemTest): .
test: An item instance should require author to be set. (ItemTest): .
test: An item instance should require case sensitive unique value for asin. (ItemTest): .
test: An item instance should require case sensitive unique value for isbn. (ItemTest): .
test: An item instance should require title to be set. (ItemTest): .
test: Item should allow creation by ASIN. (ItemTest): .
test: Item should have many categories through item_listings. (ItemTest): .
test: Item should have many item_listings dependent => destroy. (ItemTest): .
test: Item should respond to instance method #abstract_description. (ItemTest): .
test: The item API should expose the proper attributes. (ItemTest): .
test: importing ASINs should accept comma, line-break, or comma and line-break delimited lists of ASINs. (ItemTest): .
test: importing ASINs should allow not import existing ASINs. (ItemTest): .
test: importing ASINs should return proper data. (ItemTest): .
test: An items presenter instance should paginate with 10 record(s) per page. (ItemsPresenterTest): .
test: An items presenter instance should paginate. (ItemsPresenterTest): .
test: A user presenter instance available roles should ensure permissions get checked if the user and current_user are the same person. (UserPresenterTest): .
test: A user presenter instance available roles should return all roles except for null by default. (UserPresenterTest): .
test: A user presenter instance should use method_missing to pick up all other method calls. (UserPresenterTest): .
test: A user sentinel instance should know when it's destroyable. (UserSentinelTest): .
test: User should generate its own password before validating. (UserTest): .
test: roles as admin should have CRUD categories abilities. (UserTest): .
test: roles as admin should have CRUD item abilities. (UserTest): .
test: roles as admin should have CRUD users abilities. (UserTest): .
test: roles as booklist editor should have CRUD categories abilities. (UserTest): .
test: roles as booklist editor should have CRUD item abilities. (UserTest): .
test: roles as booklist editor should not have CRUD users abilities. (UserTest): .
test: roles should be able to return valid roles. (UserTest): .
test: A users presenter instance should paginate with 10 record(s) per page. (UsersPresenterTest): .
test: A users presenter instance should paginate. (UsersPresenterTest): .
Finished in 1.584208 seconds.
78 tests, 124 assertions, 0 failures, 0 errors
/Users/joshuaclayton/.rvm/ruby-1.8.6-p383/bin/ruby -I"lib:test" "/Users/joshuaclayton/.rvm/gems/ruby/1.8.6/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/functional/admin/base_controller_test.rb" "test/functional/admin/categories_controller_test.rb" "test/functional/admin/item_listings_controller_test.rb" "test/functional/admin/items_controller_test.rb" "test/functional/clearance/users_controller_test.rb" "test/functional/routing_test.rb" "test/functional/users_controller_test.rb" -v
Loaded suite /Users/joshuaclayton/.rvm/gems/ruby/1.8.6/gems/rake-0.8.7/lib/rake/rake_test_loader
Started
test: denied_with improper_role should render text as response. (Admin::BaseControllerTest): .
test: denied_with improper_role should respond with forbidden. (Admin::BaseControllerTest): .
test: When sentinel is set up to {} with the proper role performing `get :index` should allow access. (Admin::CategoriesControllerTest): .
test: When sentinel is set up to {} without the proper role performing `get :index` should call the proper denied handler. (Admin::CategoriesControllerTest): .
test: a POST to :reorder should allow sibling categories to reorder themselves. (Admin::CategoriesControllerTest): .
test: When sentinel is set up to {} with the proper role performing `post :create, :format => 'js'` should allow access. (Admin::ItemListingsControllerTest): .
test: When sentinel is set up to {} without the proper role performing `post :create` should call the proper denied handler. (Admin::ItemListingsControllerTest): .
test: a POST to :reorder should allow item listings to reorder themselves. (Admin::ItemListingsControllerTest): .
test: When sentinel is set up to {} with the proper role performing `get :index` should allow access. (Admin::ItemsControllerTest): .
test: When sentinel is set up to {} without the proper role performing `get :index` should call the proper denied handler. (Admin::ItemsControllerTest): .
test: on POST to :create with only an ASIN should change "Item.count" by 1. (Admin::ItemsControllerTest): .
test: on POST to :create with only an ASIN should redirect to edit item admin page. (Admin::ItemsControllerTest): .
test: on POST to :import should redirect to the items admin page. (Admin::ItemsControllerTest): .
test: on POST to :import should respond with redirect. (Admin::ItemsControllerTest): .
test: on POST to :import should set the flash to /imported/i. (Admin::ItemsControllerTest): .
test: on GET to :create should redirect to home page. (Clearance::UsersControllerTest): .
test: on GET to :new should redirect to home page. (Clearance::UsersControllerTest): .
test: Routing should route GET / to/from {:action=>:index, :controller=>:home}. (RoutingTest): .
test: Routing should route GET /admin to/from {:action=>:index, :controller=>"admin/categories"}. (RoutingTest): .
test: Routing should route GET /login to/from {:action=>:new, :controller=>"sessions"}. (RoutingTest): .
test: Routing should route GET /logout to/from {:action=>:destroy, :controller=>"sessions"}. (RoutingTest): .
test: on PUT to :update should ensure 'user' does not contain 'active'. (UsersControllerTest): .
test: on PUT to :update should ensure 'user' does not contain 'roles'. (UsersControllerTest): .
Finished in 3.072271 seconds.
23 tests, 39 assertions, 0 failures, 0 errors
/Users/joshuaclayton/.rvm/ruby-1.8.6-p383/bin/ruby -I"lib:test" "/Users/joshuaclayton/.rvm/gems/ruby/1.8.6/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" -v
/admin/users/index.erb
- displays a recordset of users
/admin/users/_recordset.erb
- displays pagination
- displays the correct <thead>
- displays the correct data
- does not display a delete link if not destroyable
/admin/items/index.erb
- displays a recordset of items
- displays a link to create a new item
- has a div with id of items-recordset for AJAX responses
/admin/categories/index.erb
- displays a recordset of users
- displays a link to create a new category
/admin/items/new.erb
- displays a form
- displays a link to import a list of ASINs
/admin/items/_import_form.erb
- displays the proper fields
- allows overriding of asins
/admin/users/_form.erb
- displays the proper fields
/layouts/application.erb conditionally displaying admin navigation
- displays admin navigation if it's within the admin section
- does not display admin navigation if it's not within the admin section
/layouts/application.erb flash messages
- displays flash messages with render_flash
/layouts/application.erb
- displays the auth navigation
/admin/categories/_form.erb
- displays the proper fields
- allows for inline-adding of item listings
/admin/items/_form.erb
- displays the proper fields
- displays a list of categories
/admin/item_listings/_sortable_list.erb
- displays a message if there are no listings
- does not display javascript unless category exists
- displays the corre
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment