Sha256: 6af021acae703613cfc1f62b7d304d6660a269a97468b987cd729e594596a8dd

Contents?: true

Size: 655 Bytes

Versions: 5

Compression:

Stored size: 655 Bytes

Contents

require 'helper'

class TestScaffolder < Test::Unit::TestCase
  context Scaffolder::Region::Unresolved do

    should_have_method_attribute Scaffolder::Region::Unresolved
    should_have_attribute Scaffolder::Region::Unresolved, :length

    should "return unresolved sequence when given length" do
      length = 5
      unresolved = Scaffolder::Region::Unresolved.new
      unresolved.length length
      assert_equal(unresolved.sequence,'N' * 5)
    end

    should "raise an error if length is unspecified" do
      assert_raise(Scaffolder::Errors::CoordinateError) do 
        Scaffolder::Region::Unresolved.new.sequence
      end
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
scaffolder-0.4.4 test/test_unresolved.rb
scaffolder-0.4.3 test/test_unresolved.rb
scaffolder-0.4.2 test/test_unresolved.rb
scaffolder-0.4.1 test/test_unresolved.rb
scaffolder-0.4.0 test/test_unresolved.rb