1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/spec/helpers/bin.rb
2014-12-09 22:42:27 +00:00

30 lines
669 B
Ruby

module Fog
module BinSpec
extend Minitest::Spec::DSL
it "responds to available?" do
assert_respond_to subject, :available?
end
it "responds to class_for" do
assert_respond_to subject, :class_for
end
it "#class_for raises ArgumentError for unknown services" do
assert_raises(ArgumentError) { subject.class_for(:unknown) }
end
it "responds to collections" do
skip if subject == ::Google
assert_respond_to subject, :collections
end
it "responds to []" do
assert_respond_to subject, :[]
end
it "responds to services" do
assert_respond_to subject, :services
end
end
end