Sha256: 9e0c652f02582a12d612571631b365a82b58fa8d624eb763e71f2a168d6d52d4

Contents?: true

Size: 500 Bytes

Versions: 8

Compression:

Stored size: 500 Bytes

Contents

require 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

8 entries across 8 versions & 2 rubygems

Version Path
relevance-tarantula-0.1.0 examples/relevance/tarantula_example.rb
relevance-tarantula-0.1.1 examples/relevance/tarantula_example.rb
relevance-tarantula-0.1.2 examples/relevance/tarantula_example.rb
relevance-tarantula-0.1.3 examples/relevance/tarantula_example.rb
relevance-tarantula-0.1.4 examples/relevance/tarantula_example.rb
relevance-tarantula-0.1.5 examples/relevance/tarantula_example.rb
tarantula-0.1.4 examples/relevance/tarantula_example.rb
tarantula-0.1.5 examples/relevance/tarantula_example.rb