Skip to content

Instantly share code, notes, and snippets.

@rodrigob
Created March 25, 2010 09:01
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 rodrigob/343339 to your computer and use it in GitHub Desktop.
Save rodrigob/343339 to your computer and use it in GitHub Desktop.
2)
ArgumentError in 'TeaserController GET index renders :teaser_v1'
wrong number of arguments (2 for 1)
/home/rodrigob/work/popster_work/popster_bzr/src/web/popster/app/controllers/teaser_controller.rb:6:in `index'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:1331:in `send'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:1331:in `perform_action_without_filters'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/filters.rb:617:in `call_filters'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/home/rodrigob/.gem/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/home/rodrigob/.gem/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/rescue.rb:160:in `perform_action_without_flash'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/flash.rb:146:in `perform_action'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:532:in `send'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:532:in `process_without_filters'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/filters.rb:606:in `process'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/test_process.rb:567:in `process_with_test'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/test_process.rb:447:in `process'
/var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/test_process.rb:398:in `get'
./spec/controllers/teaser_controller_spec.rb:9:
$ spec --version
rspec 1.3.0
$ gem list
*** LOCAL GEMS ***
abstract (1.0.0)
actionmailer (3.0.0.beta, 2.3.5, 2.3.4, 2.2.3)
actionpack (3.0.0.beta, 2.3.5, 2.3.4, 2.2.3)
activemodel (3.0.0.beta)
activerecord (3.0.0.beta, 2.3.5, 2.3.4, 2.2.3)
activeresource (3.0.0.beta, 2.3.5, 2.3.4, 2.2.3)
activesupport (3.0.0.beta, 2.3.5, 2.3.4, 2.2.3)
Antwrap (0.7.0)
archive-tar-minitar (0.5.2)
arel (0.3.1, 0.2.1, 0.2.pre)
arrayfields (4.7.4)
authlogic (2.1.3)
builder (2.1.2)
buildr (1.3.3)
bundler (0.9.7, 0.9.3)
capistrano (2.5.18, 2.5.16, 2.5.13)
cgi_multipart_eof_fix (2.5.0)
chronic (0.2.3)
churn (0.0.12)
classifier (1.3.1)
clearance (0.8.8, 0.8.7, 0.8.4, 0.8.3)
columnize (0.3.1)
cucumber (0.6.3, 0.6.2)
cucumber-rails (0.3.0, 0.2.4)
daemons (1.0.10)
declarative_authorization (0.4.1, 0.4)
diff-lcs (1.1.2)
directory_watcher (1.3.1)
erubis (2.6.5)
facebooker (1.0.65, 1.0.63, 1.0.62)
factory_girl (1.2.3)
fastthread (1.0.7)
fattr (2.1.0)
flay (1.4.0)
flog (2.2.0)
formtastic (0.9.7, 0.9.4)
gem_plugin (0.2.3)
gemcutter (0.5.0, 0.4.1, 0.3.0)
googlecharts (1.5.4)
hammertime (0.0.2)
highline (1.5.2, 1.5.1, 1.4.0)
hirb (0.3.1)
hoe (2.5.0, 2.3.3, 1.8.2, 1.7.0)
jekyll (0.5.7)
json_pure (1.2.3, 1.2.0)
less (1.2.21, 1.2.20, 1.1.13)
linecache (0.43)
liquid (2.0.0)
mail (2.1.3, 2.1.2)
main (4.2.0)
maruku (0.6.0)
memcache-client (1.8.1, 1.7.8)
metric_fu (1.3.0)
mime-types (1.16)
mongrel (1.1.5)
mutter (0.5.3, 0.5.2)
net-scp (1.0.2)
net-sftp (2.0.4, 2.0.2, 2.0.1)
net-ssh (2.0.21, 2.0.20, 2.0.17, 2.0.15, 2.0.4)
net-ssh-gateway (1.0.1)
niquola-rbeautify (0.0.7)
open4 (1.0.1)
polyglot (0.3.0, 0.2.9)
rack (1.1.0, 1.0.1)
rack-mount (0.6.1, 0.6.0, 0.4.5)
rack-test (0.5.3)
railroad (0.5.0)
rails (3.0.0.beta, 2.3.5, 2.3.4, 2.2.3)
rails-footnotes (3.6.6)
railties (3.0.0.beta)
rake (0.8.7, 0.8.3, 0.8.1)
rcov (0.9.8)
rdoc (2.4.3)
RedCloth (4.2.3, 4.2.2)
reek (1.2.7.2)
rice (1.3.1, 1.3.0)
rjb (1.1.6)
roodi (2.1.0)
rspec (1.3.0, 1.2.9, 1.1.5)
rspec-rails (1.3.2)
rubigen (1.5.4, 1.5.2)
ruby-debug (0.10.3)
ruby-debug-base (0.10.3)
ruby-debug-ide (0.4.9, 0.4.7, 0.4.5)
ruby-ext (0.2.8, 0.2.5, 0.2.2)
ruby-nxt (0.8.1)
ruby-serialport (0.7.0)
ruby2ruby (1.2.4)
ruby_parser (2.0.4)
rubyforge (2.0.4, 2.0.3, 1.0.5, 1.0.1, 1.0.0)
rubyzip (0.9.4, 0.9.1)
Saikuro (1.1.0)
sexp_processor (3.0.3)
sprout (0.7.237, 0.7.224, 0.7.223)
sprout-as3-bundle (1.0.36, 1.0.32)
sprout-asunit3-library (4.0.15, 4.0.14)
sprout-flashplayer-bundle (10.22.7, 10.22.6)
sprout-flashplayer-tool (10.45.2, 10.42.2, 10.42.0, 10.22.2)
sprout-flex3sdk-tool (3.5.1, 3.3.1)
sprout-flex4-bundle (0.1.4)
sprout-flex4sdk-tool (4.2.11, 4.2.10)
sqlite3-ruby (1.2.5)
stemmer (1.0.1)
syntax (1.0.0)
SystemTimer (1.2)
term-ansicolor (1.0.5, 1.0.4)
text-format (1.0.0)
text-hyphen (1.0.0)
thor (0.13.4, 0.13.3, 0.13.0, 0.12.2)
treetop (1.4.4, 1.4.3)
tzinfo (0.3.17, 0.3.16)
vanity (1.3.0)
xml-simple (1.0.12, 1.0.11)
yard (0.5.4, 0.5.3)
class TeaserController < ApplicationController
layout false
def index
render :teaser_v1
end
def teaser_v1
end
end
require File.join(File.expand_path(File.dirname(__FILE__)),"../spec_helper");
describe TeaserController do
describe "GET index" do
it "renders :teaser_v1" do
get :index
#get :teaser_v1
end
end # end of "GET index"
end # end of TeaserController
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment