lib/extensions/mspec/mspec/runner/shared.rb in rhodes-3.1.1 vs lib/extensions/mspec/mspec/runner/shared.rb in rhodes-3.2.0.beta.1
- old
+ new
@@ -2,10 +2,10 @@
class Object
def it_behaves_like(desc, meth, obj=nil)
send :before, :all do
@method = meth
- @object = obj if obj
+ @object = obj
end
send :it_should_behave_like, desc.to_s
end
end