Sha256: 4e708c58d61d1f8a51e4db209df8ca9ed934bc09028389a4f33f7c61eae6492b

Contents?: true

Size: 577 Bytes

Versions: 2

Compression:

Stored size: 577 Bytes

Contents

require 'test_helper'

class HopscotchParserTest < ActiveSupport::TestCase
  test 'creates a new parser' do
    a = Hopskip::HopscotchParser.new(ApplicationController.new)
    assert_equal a.class, Hopskip::HopscotchParser
  end

  test '#show should return nil if the controller has no tour associated with it' do
    a = Hopskip::HopscotchParser.new(ApplicationController.new)
    assert_nil a.show
  end

  test '#invalid YAML should raise error' do
    assert_raises Hopskip::InvalidYAMLError do
      Hopskip::HopscotchParser.new(FailureController.new)
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hopskip-0.2.1 test/lib/hopskip/hopscotch_parser_test.rb
hopskip-0.2.0 test/lib/hopskip/hopscotch_parser_test.rb