summaryrefslogtreecommitdiff
path: root/spec/functional/win32
diff options
context:
space:
mode:
authorameyavarade <ameya.varade@clogeny.com>2013-12-31 12:49:33 +0530
committerAdam Edwards <adamed@opscode.com>2014-01-26 22:30:17 -0800
commit6dc56f8691d0da6b1ffd6eca577184001c6337b5 (patch)
treeae6c8bca587a68fb3d45a9cc653fc9640a7c12ac /spec/functional/win32
parenta0dc7f3a3b8aa7ebb73add323db35723150db63d (diff)
downloadchef-6dc56f8691d0da6b1ffd6eca577184001c6337b5.tar.gz
Added rspec test to check dynamic legit method name
Diffstat (limited to 'spec/functional/win32')
-rw-r--r--spec/functional/win32/versions_spec.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/functional/win32/versions_spec.rb b/spec/functional/win32/versions_spec.rb
index acb8bb126d..d4eba4f044 100644
--- a/spec/functional/win32/versions_spec.rb
+++ b/spec/functional/win32/versions_spec.rb
@@ -49,7 +49,13 @@ describe "Chef::ReservedNames::Win32::Version", :windows_only do
@version = Chef::ReservedNames::Win32::Version.new
end
-
+
+ context "Win32 version object" do
+ it "should contains legit method name" do
+ @version.methods.any? { |method_name| method_name.to_s.include?(".") }.should be_false
+ end
+ end
+
context "Windows Operating System version" do
it "should match the version from WMI" do
@current_os_version.should include(@version.marketing_name)