Skip to content

Instantly share code, notes, and snippets.

@adam-e-trepanier
Created October 22, 2014 02:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adam-e-trepanier/a7accd015b2e74830980 to your computer and use it in GitHub Desktop.
Save adam-e-trepanier/a7accd015b2e74830980 to your computer and use it in GitHub Desktop.
Don't test instance variables
class Foo
def initialize
@logger ||= APP::LOGGER
@agent = Agent.new(name, action, args)
end
end
describe Foo do
it "should initialize an integration logger" do
foo = Foo.new
foo.instance_variable_get(:@logger).should_not be_nil
end
it "should initialize the dsn agent" do
foo = Foo.new
foo.instance_variable_get(:@agent).should_not be_nil
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment