Sha256: 29284bcc6da075b37c3dfa19aaf4557f8d45eee1cd4eba32a761b9a84f9ab0b7
Contents?: true
Size: 820 Bytes
Versions: 2
Compression:
Stored size: 820 Bytes
Contents
require 'test_helper' class GdocsBootstrapTest < Test::Unit::TestCase def setup GdocsBootstrapTestHelper::Initializer.setup_database @bootstrap = GdocsBootstrap.new(:target_class_name => 'Scrum', :url => GOOGLE_DOC_URL) end def teardown Scrum.clear_bootstraps GdocsBootstrapTestHelper::Initializer.teardown_database end def test_should_have_url assert_equal @bootstrap.url, GOOGLE_DOC_URL end def test_should_have_target_class_name assert_equal @bootstrap.target_class_name, 'Scrum' end def test_should_bootstrap_keys Scrum.expects(:find_or_create_by_name).at_least_once.returns(Scrum.new) @bootstrap.bootstrap! end def test_should_bootstrap_values Scrum.any_instance.expects(:update_attributes).at_least_once @bootstrap.bootstrap! end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
seamusabshere-gdocs_bootstrap-0.0.1 | test/gdocs_bootstrap_test.rb |
seamusabshere-gdocs_bootstrap-0.0.2 | test/gdocs_bootstrap_test.rb |