Skip to content

Instantly share code, notes, and snippets.

@DEfusion
Created August 4, 2011 13:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DEfusion/1125121 to your computer and use it in GitHub Desktop.
Save DEfusion/1125121 to your computer and use it in GitHub Desktop.
Failures:
1) Controlpanel::AccountsController Visit dashboard without logging in should redirect to login page
Failure/Error: get :index
ActionController::RoutingError:
No route matches {:controller=>"controlpanel/accounts"}
# ./spec/controllers/controlpanel/accounts_controller_spec.rb:14:in `block (4 levels) in <top (required)>'
2) Controlpanel::AccountsController Visit dashboard after logging in should render the index page
Failure/Error: get :index
ActionController::RoutingError:
No route matches {:controller=>"controlpanel/accounts"}
# ./spec/controllers/controlpanel/accounts_controller_spec.rb:22:in `block (4 levels) in <top (required)>'
3) Controlpanel::BlogsController other actions edit should show an edit form
Failure/Error: get :edit, :id => @blog.id
NameError:
undefined local variable or method `per' for []:ActiveRecord::Relation
# ./app/controllers/controlpanel/blogs_controller.rb:89:in `load_blog'
# ./app/controllers/controlpanel/blogs_controller.rb:16:in `edit'
# ./spec/controllers/controlpanel/blogs_controller_spec.rb:36:in `block (4 levels) in <top (required)>'
4) Controlpanel::DomainsController create should save a domain created via register
Failure/Error: post :create, :domain => { :type => "register", :domain => "foo.com" }
Mock "Account_1558" received unexpected message :payments with (no args)
# ./app/controllers/controlpanel/domains_controller.rb:48:in `create'
# ./spec/controllers/controlpanel/domains_controller_spec.rb:62:in `block (3 levels) in <top (required)>'
5) Controlpanel::DomainsController create should save a domain created via transfer
Failure/Error: post :create, :domain => { :type => "transfer", :domain => "foo.com" }
Mock "Account_1564" received unexpected message :payments with (no args)
# ./app/controllers/controlpanel/domains_controller.rb:48:in `create'
# ./spec/controllers/controlpanel/domains_controller_spec.rb:69:in `block (3 levels) in <top (required)>'
6) Controlpanel::LocationsController GET autocomplete should return json including place
Failure/Error: response.body.should == @json
expected: "[{\"id\":1,\"value\":\"Baltimore, MD\"}]"
got: "[{\"value\":\"Baltimore, MD\",\"id\":1}]" (using ==)
# ./spec/controllers/controlpanel/locations_controller_spec.rb:14:in `block (3 levels) in <top (required)>'
7) Controlpanel::MembersController POST import when user inputs a simple single line of email addresses should render import_summary when valid list of 'To:' formatted fields
Failure/Error: response.should render_template('import_summary')
Expected block to return true value.
# ./spec/controllers/controlpanel/members_controller_spec.rb:70:in `block (4 levels) in <top (required)>'
Finished in 181.86 seconds
1356 examples, 7 failures, 79 pending
Failed examples:
rspec ./spec/controllers/controlpanel/accounts_controller_spec.rb:13 # Controlpanel::AccountsController Visit dashboard without logging in should redirect to login page
rspec ./spec/controllers/controlpanel/accounts_controller_spec.rb:21 # Controlpanel::AccountsController Visit dashboard after logging in should render the index page
rspec ./spec/controllers/controlpanel/blogs_controller_spec.rb:35 # Controlpanel::BlogsController other actions edit should show an edit form
rspec ./spec/controllers/controlpanel/domains_controller_spec.rb:58 # Controlpanel::DomainsController create should save a domain created via register
rspec ./spec/controllers/controlpanel/domains_controller_spec.rb:65 # Controlpanel::DomainsController create should save a domain created via transfer
rspec ./spec/controllers/controlpanel/locations_controller_spec.rb:12 # Controlpanel::LocationsController GET autocomplete should return json including place
rspec ./spec/controllers/controlpanel/members_controller_spec.rb:67 # Controlpanel::MembersController POST import when user inputs a simple single line of email addresses should render import_summary when valid list of 'To:' formatted fields
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment