Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Refactor OS stubbing in tests.

  • Loading branch information...
commit 1b9742ab33e1301a794b9056c7a132469660fc00 1 parent a1de66e
@gabebw gabebw authored
Showing with 5 additions and 5 deletions.
  1. +1 −1  spec/cocaine/command_line_spec.rb
  2. +4 −4 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
- on_windows!("mingw")
+ stub_os("mingw")
Cocaine::CommandLine.unix?.should be_false
end
View
8 spec/support/stub_os.rb
@@ -1,10 +1,10 @@
module StubOS
- def on_windows!(host_string = 'mswin')
- stub_os(host_string)
+ def on_windows!
+ stub_os('mswin')
end
- def on_unix!(host_string = 'darwin11.0.0')
- stub_os(host_string)
+ def on_unix!
+ stub_os('darwin11.0.0')
end
def stub_os(host_string)
Please sign in to comment.
Something went wrong with that request. Please try again.