Permalink
Browse files

don't check for items being able to change their application. seems b…

…rokein insdie zabbix
  • Loading branch information...
1 parent 625415f commit 336dd23d8ded2d317c27f3146017cc72f34194a9 Dhruv Bansal committed Aug 13, 2012
Showing with 0 additions and 3 deletions.
  1. +0 −3 spec/requests/item_request_spec.rb
@@ -8,7 +8,6 @@
@host_1 = ensure_save(Rubix::Host.new(:name => 'rubix_spec_host_1', :host_groups => [@host_group], :ip => '123.123.123.123'))
@host_2 = ensure_save(Rubix::Host.new(:name => 'rubix_spec_host_2', :host_groups => [@host_group], :ip => '123.123.123.124'))
@app_1 = ensure_save(Rubix::Application.new(:name => 'rubix_spec_app_1', :host_id => @host_1.id))
- @app_2 = ensure_save(Rubix::Application.new(:name => 'rubix_spec_app_1', :host_id => @host_2.id))
end
after do
@@ -49,7 +48,6 @@
@item.multiply_by = 0.1
@item.host_id = @host_2.id
@item.units = 'MB'
- @item.applications = [@app_2]
@item.save.should be_true
Rubix::Item.find(:key => 'rubix.spec1', :host_id => @host_1.id).should be_nil
@@ -66,7 +64,6 @@
new_item.multiply_by.should == 0.1
new_item.host.name.should == @host_2.name
new_item.units.should == 'MB'
- new_item.applications.map(&:name).should include(@app_2.name)
end
it "can be destroyed" do

0 comments on commit 336dd23

Please sign in to comment.