Sha256: 30c23789008698b7f005613e0b08d0afe128a5b3372bb554578bf78fdc2fbaa0
Contents?: true
Size: 464 Bytes
Versions: 3
Compression:
Stored size: 464 Bytes
Contents
require "spec_helper" 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", pending: true do lambda{rails_root}.should raise_error(NameError) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
codez-tarantula-0.5.5 | spec/relevance/tarantula_spec.rb |
codez-tarantula-0.5.4 | spec/relevance/tarantula_spec.rb |
codez-tarantula-0.5.3 | spec/relevance/tarantula_spec.rb |