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

Version Path
relevance-tarantula-0.1.6 examples/relevance/tarantula_example.rb
relevance-tarantula-0.1.7 examples/relevance/tarantula_example.rb
relevance-tarantula-0.1.8 examples/relevance/tarantula_example.rb
relevance-tarantula-0.2.0 examples/relevance/tarantula_example.rb
relevance-tarantula-0.2.1 examples/relevance/tarantula_example.rb
relevance-tarantula-0.3.2 examples/relevance/tarantula_example.rb
relevance-tarantula-0.3.3 examples/relevance/tarantula_example.rb
romanbsd-tarantula-0.1.8 examples/relevance/tarantula_example.rb
romanbsd-tarantula-0.2.0 examples/relevance/tarantula_example.rb
tarantula-rails3-0.3.3 examples/relevance/tarantula_example.rb
panmind-tarantula-0.3.3 examples/relevance/tarantula_example.rb
tarantula-0.3.3 examples/relevance/tarantula_example.rb
tarantula-0.2.0 examples/relevance/tarantula_example.rb
tarantula-0.1.8 examples/relevance/tarantula_example.rb