Sha256: 3db47ccbcc3cf4cab60a0a8a7f6fc3c33914272e4aa83a602d83c45dce455f70
Contents?: true
Size: 1.48 KB
Versions: 3
Compression:
Stored size: 1.48 KB
Contents
require "./helpers" describe "App#apps" do it "lists app names" do with_random_apps do |apps| running(:apps) do apps.sort_by(&:name).each do |a| outputs(a.name) end end end end it "filters by name with --name" do with_random_apps do |apps| name = sample(apps).name running(:apps, :name => name) do apps.sort_by(&:name).each do |a| if a.name == name outputs(a.name) end end end end end it "filters by runtime with --runtime" do with_random_apps do |apps| runtime = sample(apps).runtime running(:apps, :runtime => runtime.name) do apps.sort_by(&:name).each do |a| if a.runtime =~ /#{runtime}/ outputs(a.name) end end end end end it "filters by framework with --framework" do with_random_apps do |apps| framework = sample(apps).framework running(:apps, :framework => framework.name) do apps.sort_by(&:name).each do |a| if a.framework == framework outputs(a.name) end end end end end it "can be told which space with --space" do with_new_space do |space| with_random_apps do |other_apps| with_random_apps(space) do |apps| running(:apps, :space => space) do apps.sort_by(&:name).each do |a| outputs(a.name) end end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vmc-0.4.0.beta.32 | vmc-ng/spec/app/apps_spec.rb |
vmc-0.4.0.beta.31 | vmc-ng/spec/app/apps_spec.rb |
vmc-0.4.0.beta.30 | vmc-ng/spec/app/apps_spec.rb |