1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/joyent/models/analytics/joyent_module_tests.rb

11 lines
458 B
Ruby
Raw Normal View History

Shindo.tests("Fog::Joyent[:analytics] | joyent_module", %w{joyent}) do
2014-01-03 21:58:47 -05:00
@analytics = Fog::Joyent[:analytics]
@joyent_module = @analytics.joyent_modules.first
tests('read only') do
returns(false, 'should not save') { @joyent_module.respond_to?(:save)}
returns(false, 'should not allow creating a new one') { @joyent_module.respond_to?(:create)}
returns(false, 'should not allow destroying') { @joyent_module.respond_to?(:destroy)}
end
end