Sha256: 9f1b5281084582621b03f2a82fa7eb54e95fc480966ebe6e28b2b6110c481637

Contents?: true

Size: 651 Bytes

Versions: 4

Compression:

Stored size: 651 Bytes

Contents

require "test_helper"

class Replication::Modules::ProofreadingTest < ActiveSupport::TestCase

  def setup
    Organism.extend Replication::Process
    Organism.can_replicate with: :proofreading
  end

  test "unwound with proofreading" do
    organism = Organism.new(number_of_legs: 1, birth_date: Time.now) # invalid (needs name)
    strand = organism.unwound(name: 'First bacteria')

    assert_nil strand
  end

  test "replicate with proofreading" do
    organism = Organism.new(number_of_legs: 1, birth_date: Time.now) # invalid (needs name)

    assert_raises(Replication::UnwoundError) { organism.replicate(name: 'First bacteria') }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
replication-0.2.0 test/replication/modules/proofreading_test.rb
replication-0.1.2 test/replication/modules/proofreading_test.rb
replication-0.1.1 test/replication/modules/proofreading_test.rb
replication-0.1.0 test/replication/modules/proofreading_test.rb