I want my tests to fail if I rename a method in my /lib folder in a rails
app.
Say I have a class like:
/lib
/lib/formatter.rb
class Formatter
def self.do_transforms(text)
text
end
end
And say I reference this in my HomeController's index action:
def index
text = params[:text]
text = Formatter.do_transforms(text)
end
Now if I was to rename the method from do_transforms to perform_transforms,
what is the minimum test I would neeed to do on my HomeController to get it
to fail b/c of the rename?
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users