lib/museo.rb in museo-0.1.0 vs lib/museo.rb in museo-0.2.0
- old
+ new
@@ -45,10 +45,10 @@
attr_accessor :rspec
attr_accessor :generation_disabled
def initialize
@formatter = Museo::Formatter.new
- @rspec = false
+ @rspec = File.directory?(Museo.rails_root.join("spec"))
@generation_disabled = !!ENV["CI"]
end
def stubbed_methods
@stubbed_methods ||= {}