Sha256: 1a5eebe458634e1540b5d6283a4c1bb4bf95beb6a4f973790bd213d7a57a0a7d
Contents?: true
Size: 607 Bytes
Versions: 39
Compression:
Stored size: 607 Bytes
Contents
require 'spec_helper' class MyExampleModel < Base include Concerns::Destroyable self.prefix = "/test/" self.element_name = "example" end describe Concerns::Destroyable, "Destroyable Concern" do before :each do stub_auth_request stub_api_get("/test/example", 'base.json') @model = MyExampleModel.first end it "should not be destroyed" do @model.destroyed?.should eq(false) end it "should be destroyable" do stub_api_delete("/some/place/20101230223226074201000000") @model = MyExampleModel.first @model.destroy @model.destroyed?.should eq(true) end end
Version data entries
39 entries across 39 versions & 1 rubygems