Extract pathname methods
Use pathname and extract method for stub
Use pathname
Fix indent
Merge pull request #17 from sanemat/feature/use-pathname

Use pathname