spec/live/macro_spec.rb in zendesk_api-1.4.0 vs spec/live/macro_spec.rb in zendesk_api-1.4.2

- old
+ new

@@ -11,18 +11,20 @@ it_should_be_creatable it_should_be_updatable :actions, [{ "field" => "priority", "value" => "low" }] it_should_be_deletable describe "application", :vcr do - subject do + subject { @object } + + before :all do VCR.use_cassette("#{described_class.to_s}_application_create") do - described_class.create(client, valid_attributes.merge(default_options)) + @object = described_class.create(client, valid_attributes.merge(default_options)) end end after :all do VCR.use_cassette("#{described_class.to_s}_application_delete") do - subject.destroy + @object.destroy end end describe "to a ticket" do it "should return a hash" do