Class: Spec::Matchers::SpecExtensions::HaveMount
Instance Method Summary
collapse
#ensured_as, #grab_entry, #is_present?, #is_valid_resource?
Constructor Details
#initialize(expected, extra = "") ⇒ HaveMount
Returns a new instance of HaveMount.
5
6
7
8
|
# File 'lib/poolparty/spec/matchers/have_mount.rb', line 5
def initialize(expected,="")
@expected = expected
@extra =
end
|
Instance Method Details
#failure_message ⇒ Object
13
14
15
|
# File 'lib/poolparty/spec/matchers/have_mount.rb', line 13
def failure_message
"expected #{@target.inspect} to have mount #{@expected}"
end
|
#matches?(target) ⇒ Boolean
9
10
11
12
|
# File 'lib/poolparty/spec/matchers/have_mount.rb', line 9
def matches?(target)
@target = target
is_present?
end
|
#negative_failure_message ⇒ Object
16
17
18
|
# File 'lib/poolparty/spec/matchers/have_mount.rb', line 16
def negative_failure_message
"expected #{@target.inspect} not to have mount #{@expected}"
end
|
19
20
21
|
# File 'lib/poolparty/spec/matchers/have_mount.rb', line 19
def type
"mount"
end
|