Created
October 22, 2014 02:47
-
-
Save adam-e-trepanier/a7accd015b2e74830980 to your computer and use it in GitHub Desktop.
Don't test instance variables
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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