Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Let's abstract that away again.

  • Loading branch information...
commit ae8ae224f526cc23d17ae7b9b0b6f21844f34ca2 1 parent 1b9742a
@gabebw gabebw authored
Showing with 5 additions and 1 deletion.
  1. +1 −1  spec/cocaine/command_line_spec.rb
  2. +4 −0 spec/support/stub_os.rb
View
2  spec/cocaine/command_line_spec.rb
@@ -152,7 +152,7 @@
end
it "detects that the system is windows (mingw)" do
- stub_os("mingw")
+ on_mingw!
Cocaine::CommandLine.unix?.should be_false
end
View
4 spec/support/stub_os.rb
@@ -7,6 +7,10 @@ def on_unix!
stub_os('darwin11.0.0')
end
+ def on_mingw!
+ stub_os('mingw')
+ end
+
def stub_os(host_string)
# http://blog.emptyway.com/2009/11/03/proper-way-to-detect-windows-platform-in-ruby/
RbConfig::CONFIG.stubs(:[]).with('host_os').returns(host_string)

0 comments on commit ae8ae22

Please sign in to comment.
Something went wrong with that request. Please try again.