Changeset 271
- Timestamp:
- 10/12/08 23:44:35 (3 months ago)
- Files:
-
- nethorus/spec/models/devices_spec.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
nethorus/spec/models/devices_spec.rb
r259 r271 30 30 describe Device do 31 31 32 fixtures :devices, :l2_interfaces 33 32 34 it "should not be valid when first created" do 33 35 device = Device.new … … 234 236 end 235 237 238 it "should report an inventory through has_inventory correctly" do 239 device = devices(:test_device_1) 240 device.has_inventory?.should be_true 241 242 device = devices(:test_device_with_no_inventory) 243 device.has_inventory?.should be_false 244 end 245 236 246 end
