(#12101) Add shared context for specs to imitate windows or posix
Add "windows" and "posix" shared contexts to rspec. If you give :as_platform
> :posix or :as_platform => :windows as argument to a describe block, it will
automatically stub the relevant facts and path behavior to imitate windows or
posix.