Sha256: 4212227a33f9aa77db26f80e2d8021e79702e02e78a6bc7e9f64d65781033e4f

Contents?: true

Size: 697 Bytes

Versions: 9

Compression:

Stored size: 697 Bytes

Contents

require '../test_helper'

context "Runner" do
  setup do
    @runner = Crags::Runner.new
    @runner.stubs(:fetch_doc)
    @runner.stubs(:items).returns([])
  end

  specify "runner should include searcher" do
    Crags::Runner.ancestors.should.include Crags::Searcher
  end
  
  specify "search location should puts message with loc" do
    @runner.expects(:puts).with { |val| val =~ /location/ }
    @runner.search_location("", "location", "category")
  end
  
  specify "search location should take a category" do
    @runner.search_location("", "location", "category")
  end

  specify "search location should have default category sss" do
    @runner.search_location("", "location")
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gotascii-crags-1.0.2 test/crags/runner_test.rb
gotascii-crags-1.1.0 test/crags/runner_test.rb
gotascii-crags-1.1.1 test/crags/runner_test.rb
gotascii-crags-1.2.0 test/crags/runner_test.rb
gotascii-crags-1.2.3 test/crags/runner_test.rb
gotascii-crags-1.2.4 test/crags/runner_test.rb
gotascii-crags-1.2.5 test/crags/runner_test.rb
gotascii-crags-1.2.6 test/crags/runner_test.rb
gotascii-crags-1.2.7 test/crags/runner_test.rb