lib/serverspec/matchers/have_gid.rb in serverspec-0.4.3 vs lib/serverspec/matchers/have_gid.rb in serverspec-0.4.4
- old
+ new
@@ -1,6 +1,10 @@
RSpec::Matchers.define :have_gid do |gid|
match do |group|
- backend.check_gid(example, group, gid)
+ if group.respond_to?(:has_gid?)
+ group.has_gid?(gid)
+ else
+ backend.check_gid(example, group, gid)
+ end
end
end