Hi guys. One of my methods uses a constant in another method, like this:
class A
def something
"foo: #{B::BAR}"
end
end
When writing the spec for A#something , how would you mock or stub
#{B::BAR}, and how would you set an expectation that B::BAR is used?
Thanks, Nick _______________________________________________ rspec-users mailing list [email protected] http://rubyforge.org/mailman/listinfo/rspec-users
