KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Let's say I have a class definition like so: class Foo def init(val) @val = val end def self.bar :bar end def val @val end end with a spec like: describe Foo it { should respond_to(:val) } it { should respond_to(:bar) } end The second it assertion fails. It isn't clear to me from RSpec's documentation that respond_to should fail on class methods.
Tags (comma-separated)
Save Edits
Cancel