[rspec-users] speccing a call to break
Scott Taylor
mailing_lists at railsnewbie.com
Fri Apr 20 12:48:18 EDT 2007
How can I spec that a method calls break? As far as I can see from
ri, break is a pure syntax element (not a method from Kernel or
Object), so I'm not sure what to mock...
E.g.:
class SomeClass
def a_method
loop do
break
end
end
end
Scott
P.S. Sorry for the annoying questions, but I just want to know!
P.P.S: What is the right form of the verb "to spec" in the
Progressive? Is it "specing" or "speccing"?
More information about the rspec-users
mailing list