spec/lib/pickle_injector_spec.rb in ianwhite-pickle-0.1.1 vs spec/lib/pickle_injector_spec.rb in ianwhite-pickle-0.1.2
- old
+ new
@@ -1,12 +1,12 @@
require File.expand_path(File.join(File.dirname(__FILE__), '../spec_helper'))
describe Pickle::Injector do
describe ".inject Pickle::Session, :into => <a class>" do
before do
- @class = Class.new
- Pickle::Injector.inject Pickle::Session, :into => @class
- @object = @class.new
+ klass = Class.new
+ Pickle::Injector.inject Pickle::Session, :into => klass
+ @object = klass.new
end
it "object should respond_to Pickle:Session methods" do
@object.should respond_to(:model)
@object.should respond_to(:create_model)
\ No newline at end of file