Sha256: 8f34f08afe79f9918eb044c3d5c750aa168446a262ed81e022afb867c3fb5a69

Contents?: true

Size: 828 Bytes

Versions: 8

Compression:

Stored size: 828 Bytes

Contents

require File.dirname(__FILE__) + '/../test_helper'

class Crags::RunnerTest < Test::Unit::TestCase
  context "instance of Runner" do
    setup do
      @runner = Crags::Runner.new
      @runner.stubs(:fetch_doc)
      @runner.stubs(:items).returns([])
    end

    should "runner should include searcher" do
      Crags::Runner.ancestors.include?(Crags::Searcher).should == true
    end

    should "search location should puts message with loc" do
      @runner.expects(:puts).with { |val| val =~ /location/ }
      @runner.search_location("", "location", "category")
    end

    should "search location should take a category" do
      @runner.search_location("", "location", "category")
    end

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

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
gotascii-crags-1.4.2 test/crags/runner_test.rb
gotascii-crags-1.4.3 test/crags/runner_test.rb
gotascii-crags-1.4.4 test/crags/runner_test.rb
gotascii-crags-1.4.5 test/crags/runner_test.rb
gotascii-crags-1.4.6 test/crags/runner_test.rb
gotascii-crags-1.4.9 test/crags/runner_test.rb
crags-1.6.0 test/crags/runner_test.rb
crags-1.5.9 test/crags/runner_test.rb