Hi
I am very new to ruby and rspec so apologies if this is a stupid question,
but I'm trying to start using rspec and am getting an error that is
confusing me. I have a spec that fails on an ArgumentError, the confusing
thing for me is running the same thing in a interactive ruby shell or my
script doesn't give an ArgumentError. So while I would normally think this
was a problem with the gem I am using or how I am using it, the fact that I
was having no problems until I tried to use rspec is making me wonder if I
have missed something about rspec. Anyway here is my spec file:
require "cinch"
describe "Cinchbot" do
it "why does this not work" do
Failure/Error: Cinch::Bot.new
ArgumentError:
wrong number of arguments (2 for 0)
#
/usr/local/rvm/gems/ruby-2.2.4/gems/cinch-2.3.2/lib/cinch/bot.rb:354:in
`initialize'
#
/usr/local/rvm/gems/ruby-2.2.4/gems/cinch-2.3.2/lib/cinch/bot.rb:354:in
`initialize'
# ./spec/bot/bot_spec.rb:5:in `new'
# ./spec/bot/bot_spec.rb:5:in `block (2 levels) in <top (required)>'
--
You received this message because you are subscribed to the Google Groups
"rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rspec/913967f7-9e85-4087-a393-e2a4d1cf397c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.