You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our Rakefile we have a task that does require_relative "lib/twingly/url":
namespace:profiledorequire_relative"profile/profile"desc"Profile"task:normalizedo |task|
require_relative"lib/twingly/url"Profile.measure"normalizing a short URL",1000doTwingly::URL.parse('http://www.duh.se/').normalizedendendend
This require could hide problems that we try to catch in our tests, because even if we wont run that particular task, the require is evaluated when doing anything with rake, like running our specs.
The text was updated successfully, but these errors were encountered:
E.g. commenting out require_relative "../url" in lib/twingly/url/null_rull.rb when having the above require in the Rakefile, all NullURL specs passes. They should fail, which they do if the require in the Rakefile is also commented out.
In our Rakefile we have a task that does
require_relative "lib/twingly/url"
:This require could hide problems that we try to catch in our tests, because even if we wont run that particular task, the require is evaluated when doing anything with
rake
, like running our specs.The text was updated successfully, but these errors were encountered: