Skip to content

Instantly share code, notes, and snippets.

@mizzy
Created November 11, 2013 08:16
Show Gist options
  • Save mizzy/7409640 to your computer and use it in GitHub Desktop.
Save mizzy/7409640 to your computer and use it in GitHub Desktop.
require 'serverspec'
include Serverspec::Helper::DetectOS
include Serverspec::Helper::Exec
p self.methods.grep(/attr/)
# [:attr, :attr_set] と出る
describe {
p self.methods.grep(/attr/)
# [:attr_set] と出る
it do
p self.methods.grep(/attr/)
# [:attr, :attr_set] と出る
end
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment