Sha256: 9035325b27854f7447ef22c7e1cb2a5d110b7b75d29aac95616d3450fb19ce42
Contents?: true
Size: 518 Bytes
Versions: 14
Compression:
Stored size: 518 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), "..", "example_helper.rb")) describe Relevance::Tarantula do include Relevance::Tarantula attr_accessor :verbose it "writes to stdout if verbose" do self.verbose = true expects(:puts).with("foo") log("foo") end it "swallows output if !verbose" do self.verbose = false expects(:puts).never log("foo") end it "puts RAILS_ROOT behind a method call" do lambda{rails_root}.should raise_error(NameError) end end
Version data entries
14 entries across 14 versions & 5 rubygems