Module: LiveResource::RSpec
- Defined in:
- lib/live_resource/rspec/version.rb,
lib/live_resource/rspec/depend_on.rb,
lib/live_resource/rspec/dependencies_on.rb
Defined Under Namespace
Classes: DependOn
Constant Summary collapse
- VERSION =
"0.0.1"
Instance Method Summary collapse
- #depend_on(expected) ⇒ Object
- #dependencies_on(resource, target) ⇒ Object
- #dependency_on(resource, target) ⇒ Object
Instance Method Details
#depend_on(expected) ⇒ Object
35 36 37 |
# File 'lib/live_resource/rspec/depend_on.rb', line 35 def depend_on(expected) DependOn.new(expected) end |
#dependencies_on(resource, target) ⇒ Object
3 4 5 |
# File 'lib/live_resource/rspec/dependencies_on.rb', line 3 def dependencies_on(resource, target) resource.dependencies.select { |dependency| dependency.target == target } end |
#dependency_on(resource, target) ⇒ Object
7 8 9 |
# File 'lib/live_resource/rspec/dependencies_on.rb', line 7 def dependency_on(resource, target) dependencies_on(resource, target).first end |