Skip to content

Commit

Permalink
rename ExampleObject to SomeExampleObject due to superclass mismatch …
Browse files Browse the repository at this point in the history
…on CI
  • Loading branch information
Josh Martin committed May 9, 2012
1 parent cb014df commit c34e69c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/zuora/objects/base_spec.rb
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
require 'spec_helper'

class ExampleObject < Zuora::Objects::Base
class SomeExampleObject < Zuora::Objects::Base
end

class ExampleConnector
class SomeExampleConnector
def initialize(model)
end
end

describe Zuora::Objects::Base do
describe :connector do
it "uses SoapConnector by default" do
ExampleObject.connector.should be_a Zuora::SoapConnector
SomeExampleObject.connector.should be_a Zuora::SoapConnector
end

it "allows injecting different class for tests" do
described_class.connector_class = ExampleConnector
ExampleObject.connector.should be_a ExampleConnector
described_class.connector_class = SomeExampleConnector
SomeExampleObject.connector.should be_a SomeExampleConnector
#reset for subsequent tests
described_class.connector_class = Zuora::SoapConnector
end
Expand Down

0 comments on commit c34e69c

Please sign in to comment.