spec/spec_helper.rb in shoes-package-4.0.0.pre3 vs spec/spec_helper.rb in shoes-package-4.0.0.pre4
- old
+ new
@@ -36,11 +36,11 @@
# it "does something only on windows" do
# # specification
# end
# end
def platform_is(platform)
- yield if self.send "platform_is_#{platform.to_s}"
+ yield if self.send "platform_is_#{platform}"
end
# Runs specs only if platform does not match
#
# @example
@@ -48,10 +48,10 @@
# it "does something only on posix systems" do
# # specification
# end
# end
def platform_is_not(platform)
- yield unless self.send "platform_is_#{platform.to_s}"
+ yield unless self.send "platform_is_#{platform}"
end
def platform_is_windows
return RbConfig::CONFIG['host_os'] =~ /windows|mswin/i
end