100+ results for 'Test::Unit::TestCase lang:Ruby'

Not the results you expected?

test_triangle.rb (https://github.com/toshi0328/gmath3D.git) Ruby · 318 lines

6 MiniTest::Unit.autorun

7

8 class TriangleTestCase < MiniTest::Unit::TestCase

9 def setup

10 @triangle = Triangle.new( Vector3.new(1,2,2), Vector3.new(1,4,2), Vector3.new(-1,3,0))

request_forgery_protection_test.rb (https://bitbucket.org/javierbuilder/uncontabilidad.git) Ruby · 327 lines

231 # OK let's get our test on

232

233 class RequestForgeryProtectionControllerTest < Test::Unit::TestCase

234 include RequestForgeryProtectionTests

235 def setup

246 end

247

248 class RequestForgeryProtectionWithoutSecretControllerTest < Test::Unit::TestCase

249 def setup

250 @controller = RequestForgeryProtectionWithoutSecretController.new

265 end

266

267 class CsrfCookieMonsterControllerTest < Test::Unit::TestCase

268 include RequestForgeryProtectionTests

269 def setup

test_x509store.rb (https://github.com/cparedes/omnibus.git) Ruby · 218 lines

8 if defined?(OpenSSL)

9

10 class OpenSSL::TestX509Store < Test::Unit::TestCase

11 def setup

12 @rsa1024 = OpenSSL::TestUtils::TEST_KEY_RSA1024

TestParse.rb (https://github.com/akiernan/omnibus.git) Ruby · 503 lines

7 include SM

8

9 class TestParse < Test::Unit::TestCase

10

11 class MockOutput

storage_test.rb (https://github.com/kmoormann/railscasts-episodes.git) Ruby · 277 lines

1 require 'test/helper'

2

3 class StorageTest < Test::Unit::TestCase

4 context "Parsing S3 credentials" do

5 setup do

task_instrumentation_test.rb (https://github.com/reillyse/rpm.git) Ruby · 188 lines

4 require File.expand_path('../../../test_helper', __FILE__)

5

6 class TaskInstrumentationTest < Test::Unit::TestCase

7 include NewRelic::Agent::Instrumentation::ControllerInstrumentation

8 extend TestContexts

crate_test.rb (https://github.com/buffpojken/PMOG-OS.git) Ruby · 444 lines

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

2

3 class CrateTest < Test::Unit::TestCase

4 fixtures :upgrades, :users, :user_levels, :tools, :locations, :crates, :tools, :levels, :inventories, :ability_statuses

5

test_rendering.rb (https://github.com/ganesan/padrino-framework.git) Ruby · 368 lines

2 require 'i18n'

3

4 class TestRendering < Test::Unit::TestCase

5 def teardown

6 remove_views

test_validations.rb (https://github.com/thedaniel/mongomatic.git) Ruby · 340 lines

2 require 'minitest/autorun'

3

4 class TestValidations < MiniTest::Unit::TestCase

5 def test_array_style_errors

6 f = Foobar.new

div_test.rb (https://github.com/DanielVartanov/firewatir-enhancements.git) Ruby · 276 lines

5 require 'unittests/setup'

6

7 class TC_Divs < Test::Unit::TestCase

8

9

191 end

192

193 class TC_Divs_Display < Test::Unit::TestCase

194

195 include MockStdoutTestCase

234 end

235

236 class TC_Spans_Display < Test::Unit::TestCase

237 include MockStdoutTestCase

238

test_row.rb (https://github.com/filiptepper/example.git) Ruby · 312 lines

12 require "csv"

13

14 class TestCSVRow < Test::Unit::TestCase

15 def setup

16 @row = CSV::Row.new(%w{A B C A A}, [1, 2, 3, 4])

routing_test.rb (https://github.com/github/rails.git) Ruby · 400 lines

3

4 module ApplicationTests

5 class RoutingTest < Test::Unit::TestCase

6 include ActiveSupport::Testing::Isolation

7 include Rack::Test::Methods

test_latlng.rb (https://github.com/marionm/geokit-gem.git) Ruby · 215 lines

4 require 'mocha'

5

6 class LatLngTest < Test::Unit::TestCase #:nodoc: all

7

8 def setup

tc_data_timezone_info.rb (https://bitbucket.org/ohimmelreich/asalia-training.git) Ruby · 282 lines

5 include TZInfo

6

7 class TCDataTimezoneInfo < Test::Unit::TestCase

8

9 def test_identifier

test_fileutils.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 262 lines

5 require 'stringio'

6

7 class Rake::TestFileUtils < Test::Unit::TestCase

8 include FileCreation

9 BASEDIR = File.dirname(__FILE__)

test_migration_generator.rb (https://github.com/ganesan/padrino-framework.git) Ruby · 189 lines

1 require File.expand_path(File.dirname(__FILE__) + '/helper')

2

3 class TestMigrationGenerator < Test::Unit::TestCase

4 def setup

5 `rm -rf /tmp/sample_project`

compiled_templates_test.rb (https://github.com/sakarist/ryweb.git) Ruby · 203 lines

2 require 'controller/fake_models'

3

4 class CompiledTemplatesTest < Test::Unit::TestCase

5

6 def setup

task_definition_test.rb (https://github.com/wangmh/webistrano.git) Ruby · 101 lines

2 require 'capistrano/task_definition'

3

4 class TaskDefinitionTest < Test::Unit::TestCase

5 def setup

6 @namespace = namespace

file_type.rb (https://github.com/lpeabody/coderay.git) Ruby · 123 lines

2 require 'coderay/helpers/file_type'

3

4 class FileTypeTests < Test::Unit::TestCase

5

6 include CodeRay

test_http11.rb (https://github.com/rkh/puma.git) Ruby · 126 lines

6 include Puma

7

8 class Http11ParserTest < Test::Unit::TestCase

9

10 def test_parse_simple

callback_inheritance_test.rb (https://bitbucket.org/javierbuilder/rails.git) Ruby · 150 lines

83 end

84

85 class BasicCallbacksTest < Test::Unit::TestCase

86 def setup

87 @index = GrandParent.new("index").dispatch

104 end

105

106 class InheritedCallbacksTest < Test::Unit::TestCase

107 def setup

108 @index = Parent.new("index").dispatch

125 end

126

127 class InheritedCallbacksTest2 < Test::Unit::TestCase

128 def setup

129 @update1 = Child.new("update", :open).dispatch

testThirdConjugation.rb (https://github.com/judytuna/LatinVerb.git) Ruby · 190 lines

7

8

9 class TestLatinVerbThirdConj < MiniTest::Unit::TestCase # :nodoc:

10 def setup

11 @aThird = Linguistics::Latin::Verb::LatinVerb.new 'agō agere ēgī actum'

asset_package_helper_development_test.rb (https://bitbucket.org/tduarte/hite.in.git) Ruby · 100 lines

15 $asset_base_path = "#{RAILS_ROOT}/vendor/plugins/asset_packager/test/assets"

16

17 class AssetPackageHelperDevelopmentTest < Test::Unit::TestCase

18 include ActionView::Helpers::TagHelper

19 include ActionView::Helpers::AssetTagHelper

namespace_dsl_test.rb (https://github.com/et/capistrano.git) Ruby · 311 lines

2 require 'capistrano/configuration/namespaces'

3

4 class ConfigurationNamespacesDSLTest < Test::Unit::TestCase

5 class MockConfig

6 attr_reader :original_initialize_called, :options

helper.rb (https://github.com/holoiii/Free-RPG-Engine-FaceBook-Game-App.git) Ruby · 146 lines

29 end

30

31 class Test::Unit::TestCase

32 def setup

33 silence_warnings do

notifier_test.rb (https://github.com/indirect/airbrake.git) Ruby · 235 lines

1 require File.dirname(__FILE__) + '/helper'

2

3 class NotifierTest < Test::Unit::TestCase

4

5 class OriginalException < Exception

atom_feed_test.rb (https://github.com/bennett/communityengine.git) Ruby · 85 lines

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

2 class AtomFeedTest < Test::Unit::TestCase

3 attr_reader :request

4

routing_test.rb (https://github.com/josefrichter/docrails.git) Ruby · 261 lines

2

3 module ApplicationTests

4 class RoutingTest < Test::Unit::TestCase

5 include ActiveSupport::Testing::Isolation

6

test_timers.rb (https://github.com/goking/eventmachine.git) Ruby · 160 lines

30 require 'test/unit'

31

32 class TestTimers < Test::Unit::TestCase

33

34 def test_timer_with_block

handset_test.rb (https://github.com/bluecat76/wurfl.git) Ruby · 110 lines

2 require 'wurfl/handset'

3

4 class HandsetTest < Test::Unit::TestCase

5 def setup

6 @fallback = Wurfl::Handset.new("fallback_id", "f", nil)

relatable_test.rb (https://github.com/botsie/virtualbox.git) Ruby · 369 lines

1 require File.expand_path("../../../test_helper", __FILE__)

2

3 class RelatableTest < Test::Unit::TestCase

4 class Relatee

5 def self.populate_relationship(caller, data)

notification_test.rb (https://github.com/micahalles/flix_cloud-gem.git) Ruby · 223 lines

1 require 'test_helper'

2

3 class FlixCloud::NotificationTest < Test::Unit::TestCase

4

5 context "When initializing with a string containing xml" do

context_test.rb (https://github.com/balmas/sosol.git) Ruby · 372 lines

175 end

176

177 class ShouldMatcherTest < Test::Unit::TestCase

178 class FakeMatcher

179 attr_reader :subject

213

214 def create_test_suite(&definition)

215 test_class = Class.new(Test::Unit::TestCase, &definition)

216 test_class.suite

217 end

tc_timezone_period.rb (https://bitbucket.org/ohimmelreich/asalia-training.git) Ruby · 509 lines

5 include TZInfo

6

7 class TCTimezonePeriod < Test::Unit::TestCase

8

9 def test_initialize_start_end

tc_time_or_datetime.rb (https://bitbucket.org/ohimmelreich/asalia-training.git) Ruby · 422 lines

5 include TZInfo

6

7 class TCTimeOrDateTime < Test::Unit::TestCase

8 def test_initialize_time

9 TimeOrDateTime.new(Time.utc(2006, 3, 24, 15, 32, 3))

extend_test.rb (https://bitbucket.org/ohimmelreich/asalia-training.git) Ruby · 1403 lines

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

3

4 class ExtendTest < Test::Unit::TestCase

5 def test_basic

6 assert_equal <<CSS, render(<<SCSS)

conversion_test.rb (https://bitbucket.org/ohimmelreich/asalia-training.git) Ruby · 1743 lines

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

3

4 class ConversionTest < Test::Unit::TestCase

5 def test_basic

6 assert_renders <<SASS, <<SCSS

formatter_test_case.rb (https://bitbucket.org/ohimmelreich/asalia-training.git) Ruby · 698 lines

35 # end

36

37 class RDoc::Markup::FormatterTestCase < MiniTest::Unit::TestCase

38

39 ##

tc_timezone_melbourne.rb (https://bitbucket.org/ohimmelreich/asalia-training.git) Ruby · 114 lines

5 include TZInfo

6

7 class TCTimezoneMelbourne < Test::Unit::TestCase

8 def test_2004

9 #Australia/Melbourne Sat Mar 27 15:59:59 2004 UTC = Sun Mar 28 02:59:59 2004 EST isdst=1 gmtoff=39600

test_order.rb (https://gitlab.com/MichelZuniga/ruby) Ruby · 109 lines

7

8 module REXMLTests

9 class OrderTester < Test::Unit::TestCase

10 include REXMLTestUtils

11

callbacks_test.rb (https://github.com/amit-m/rails.git) Ruby · 639 lines

159 end

160

161 class OneTimeCompileTest < Test::Unit::TestCase

162 def test_optimized_first_compile

163 around = OneTimeCompile.new

178 end

179

180 class AfterSaveConditionalPersonCallbackTest < Test::Unit::TestCase

181 def test_after_save_runs_in_the_reverse_order

182 person = AfterSaveConditionalPerson.new

346 end

347

348 class AroundCallbacksTest < Test::Unit::TestCase

349 def test_save_around

350 around = AroundPerson.new

awesome_nested_set_test.rb (https://github.com/chartmann/bettermeans.git) Ruby · 603 lines

5 end

6

7 class AwesomeNestedSetTest < Test::Unit::TestCase

8

9 class Default < ActiveRecord::Base

test_configure_proxy.rb (https://gitlab.com/vectorci/fluentd) Ruby · 386 lines

3

4 module Fluent::Config

5 class TestConfigureProxy < ::Test::Unit::TestCase

6 setup do

7 @type_lookup = ->(type) { Fluent::Configurable.lookup_type(type) }

id3_test.rb (https://github.com/MarcelorjOliveira/Sistemas-Especialistas.git) Ruby · 208 lines

86 include Ai4r::Data

87

88 class ID3Test < Test::Unit::TestCase

89

90 def test_build

work_time_schedule_test.rb (https://bitbucket.org/srmoscow/holiday_calendar.git) Ruby · 260 lines

4

5

6 class WorkTimeScheduleTest < Test::Unit::TestCase

7

8

validates_email_format_of.rb (https://github.com/chap/teambox.git) Ruby · 97 lines

95 end

96

97 Test::Unit::TestCase.extend(ValidatesEmailFormatOf::Shoulda)

98

test_settracefunc.rb (https://gitlab.com/klauer/ruby) Ruby · 373 lines

1 require 'test/unit'

2

3 class TestSetTraceFunc < Test::Unit::TestCase

4 def setup

5 @original_compile_option = RubyVM::InstructionSequence.compile_option

test_ruby_parser_extras.rb (https://bitbucket.org/toihrk/fusuma.git) Ruby · 291 lines

8 require 'minitest/unit'

9

10 class TestStackState < MiniTest::Unit::TestCase

11 attr_reader :s

12

164 end

165

166 class TestEnvironment < MiniTest::Unit::TestCase

167 def deny t

168 assert ! t

test_reader.rb (https://github.com/vzmind/net-http.git) Ruby · 364 lines

6

7 module Net2

8 class TestBodyReader < Test::Unit::TestCase

9 def setup

10 @body = "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."

189 end

190

191 class TestChunkedBodyReader < Test::Unit::TestCase

192 def setup

193 @body = "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."

test_alter.rb (https://github.com/itguy51/Feed-Aggregator.git) Ruby · 96 lines

6 require 'load_files'

7

8 class TestAlter < Test::Unit::TestCase

9 def setup

10 @basic = Hpricot.parse(TestFiles::BASIC)

test_date_new.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 271 lines

2 require 'date'

3

4 class TestDateNew < Test::Unit::TestCase

5

6 def test_jd

callbacks_test.rb (https://github.com/boyjunqiang/rails.git) Ruby · 528 lines

140 end

141

142 class OneTimeCompileTest < Test::Unit::TestCase

143 def test_optimized_first_compile

144 around = OneTimeCompile.new

280 end

281

282 class AroundCallbacksTest < Test::Unit::TestCase

283 def test_save_around

284 around = AroundPerson.new

299 end

300

301 class SkipCallbacksTest < Test::Unit::TestCase

302 def test_skip_person

303 person = PersonSkipper.new

sortable_table.rb (https://github.com/getaroom/sortable_table.git) Ruby · 199 lines

196 end

197

198 Test::Unit::TestCase.extend(SortableTable::Shoulda)

199 Test::Unit::TestCase.send(:include, SortableTable::ShouldaHelpers)

test_generic.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 720 lines

2 require 'uri'

3

4 class URI::TestGeneric < Test::Unit::TestCase

5 def setup

6 @url = 'http://a/b/c/d;p?q'

test_stringscanner.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 693 lines

6 require 'test/unit'

7

8 class TestStringScanner < Test::Unit::TestCase

9 def test_s_new

10 s = StringScanner.new('test string')

test_switch_hitter.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 577 lines

2 require 'date'

3

4 class TestSH < Test::Unit::TestCase

5

6 def test_new

test_basetype.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 970 lines

6

7

8 class TestSOAP < Test::Unit::TestCase

9 NegativeZero = (-1.0 / (1.0 / 0.0))

10

test_array.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 1166 lines

1 require 'test/unit'

2

3 class TestArray < Test::Unit::TestCase

4 IS19 = RUBY_VERSION =~ /1\.9/

5

test_win32ole_variant.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 661 lines

12 if defined?(WIN32OLE_VARIANT)

13

14 class TestWIN32OLE_VARIANT < Test::Unit::TestCase

15

16 def test_s_new

test_emoji.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 442 lines

3 module Emoji

4

5 class TestRenameSJIS < Test::Unit::TestCase

6 def test_shift_jis

7 assert_raise(ArgumentError) { "".force_encoding("Shift_JIS-DoCoMo") }

11 end

12

13 class TestUTF8_BLACK_SUN_WITH_RAYS < Test::Unit::TestCase

14 include Emoji

15

33 end

34

35 class TestDoCoMo < Test::Unit::TestCase

36 include Emoji

37

test_rational2.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 959 lines

1 require 'test/unit'

2

3 class Rational_Test2 < Test::Unit::TestCase

4

5 def test_kumi

test_complex2.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 578 lines

1 require 'test/unit'

2

3 class Complex_Test2 < Test::Unit::TestCase

4

5 def test_kumi

test_basicinstructions.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 685 lines

7 end

8

9 class TestBasicInstructions < Test::Unit::TestCase

10

11 def test_immediates

test_assignment.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 695 lines

1 require 'test/unit'

2

3 class TestAssignment < Test::Unit::TestCase

4 def test_assign

5 a=[]; a[0] ||= "bar";

500

501 require_relative 'sentence'

502 class TestAssignmentGen < Test::Unit::TestCase

503 Syntax = {

504 :exp => [["0"],

test_validation_rng.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 790 lines

4 require "rexml/validation/relaxng"

5

6 class RNGValidation < Test::Unit::TestCase

7 include REXML

8

test_rdoc_parser_ruby.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 2135 lines

10 require 'rdoc/stats'

11

12 class TestRDocParserRuby < MiniTest::Unit::TestCase

13

14 def setup

test_bigdecimal.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 1306 lines

4 require 'thread'

5

6 class TestBigDecimal < Test::Unit::TestCase

7 include TestBigDecimalBase

8

test_generic.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 704 lines

5

6

7 class TestGeneric < Test::Unit::TestCase

8 def setup

9 @url = 'http://a/b/c/d;p?q'

test_assignment.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 467 lines

1 require 'test/unit'

2

3 class TestAssignment < Test::Unit::TestCase

4 def test_assign

5 a=[]; a[0] ||= "bar";

test-trees.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 843 lines

9 include ANTLR3::AST

10

11 class TestTreeNodeStream < Test::Unit::TestCase

12 def setup

13 @adaptor = CommonTreeAdaptor.new

311 end

312

313 class TestCommonTreeNodeStream < Test::Unit::TestCase

314 def setup

315 # before-each-test code

454

455

456 class TestCommonTree < Test::Unit::TestCase

457 def setup

458 @adaptor = CommonTreeAdaptor.new

role_test.rb (https://github.com/bennett/xlsuite.git) Ruby · 295 lines

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

2

3 class RoleTest < Test::Unit::TestCase

4 setup do

5 @account = accounts(:wpul)

test_permissions.rb (https://github.com/feist/pcs.git) Ruby · 498 lines

4 require 'permissions.rb'

5

6 class TestPermissions < Test::Unit::TestCase

7

8 def test_is_user_type()

24

25

26 class TestEntityPermissions < Test::Unit::TestCase

27

28 def setup

129

130

131 class TestPermissionsSet < Test::Unit::TestCase

132

133 def setup

test_corosyncconf.rb (https://github.com/feist/pcs.git) Ruby · 1302 lines

5 require 'corosyncconf.rb'

6

7 class TestCorosyncConfSection < Test::Unit::TestCase

8 def test_empty_section

9 section = CorosyncConf::Section.new('mySection')

744 end

745

746 class TestCorosyncConfParser < Test::Unit::TestCase

747 def test_empty

748 assert_equal('', CorosyncConf::parse_string('').text)

test_config.rb (https://github.com/feist/pcs.git) Ruby · 919 lines

6 require 'permissions.rb'

7

8 class TestConfig < Test::Unit::TestCase

9 def setup

10 $logger = MockLogger.new

665

666

667 class TestCfgKnownHosts < Test::Unit::TestCase

668 def setup

669 $logger = MockLogger.new

events_test.rb (https://gitlab.com/Blueprint-Marketing/rdom) Ruby · 500 lines

1 require File.expand_path('../../test_helper', __FILE__)

2

3 class EventsTest < Test::Unit::TestCase

4 attr_reader :window, :document

5

sensu_test.rb (https://github.com/Epictetus/sensu.git) Ruby · 118 lines

1 class TestSensu < MiniTest::Unit::TestCase

2 include EM::Ventually

3 EM::Ventually.total_default = 1.5

test_project_utils.rb (https://github.com/holroyd/martsearch.git) Ruby · 852 lines

3 require "test_helper"

4

5 class TestMartSearchProjectUtils < Test::Unit::TestCase

6 include MartSearch::ProjectUtils

7 public :get_top_level_project_info, :get_human_orthalog, :get_mice, :get_mutagenesis_predictions

test_nexus.rb (https://github.com/domthu/bioruby.git) Ruby · 366 lines

24 module Bio

25

26 class TestNexus < Test::Unit::TestCase

27

28 NEXUS_STRING_1 = <<-END_OF_NEXUS_STRING

test_report.rb (https://github.com/domthu/bioruby.git) Ruby · 870 lines

57

58

59 class TestSim4Report < Test::Unit::TestCase

60

61 def setup

129 end #class TestSim4Report

130

131 class TestSim4ReportHit < Test::Unit::TestCase

132

133 def setup

261 end #class TestSim4ReportHit

262

263 class TestSim4ReportSegmentPair_exon < Test::Unit::TestCase

264 def setup

265 @exon = TestDataForSim4Report.report1.hits[0].exons[1]

test_tree.rb (https://github.com/domthu/bioruby.git) Ruby · 852 lines

20

21 module Bio

22 class TestTreeEdge < Test::Unit::TestCase

23 def setup

24 @obj = Bio::Tree::Edge.new(123.45)

66 end #class TestTreeEdge

67

68 class TestTreeNode < Test::Unit::TestCase

69 def setup

70 @obj = Bio::Tree::Node.new

126 end #class TestTreeNode

127

128 class TestTree < Test::Unit::TestCase

129 def setup

130 @tree = Bio::Tree.new

model_persistence_test.rb (https://github.com/vwall/tire.git) Ruby · 477 lines

4 module Model

5

6 class PersistenceTest < Test::Unit::TestCase

7

8 context "Model" do

test_rdoc_markup.rb (https://github.com/johnbender/rubinius.git) Ruby · 626 lines

4 require 'rdoc/markup/to_test'

5

6 class TestRDocMarkup < MiniTest::Unit::TestCase

7

8 def basic_conv(str)

date_time_ext_test.rb (https://github.com/phuibonhoa/rails.git) Ruby · 412 lines

2 require 'active_support/time'

3

4 class DateTimeExtCalculationsTest < Test::Unit::TestCase

5 def test_to_s

6 datetime = DateTime.new(2005, 2, 21, 14, 30, 0, 0)

multiple_select_test.rb (https://github.com/wangmh/webistrano.git) Ruby · 686 lines

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

2

3 class MultipleSelectTest < Test::Unit::TestCase #:nodoc:

4 include FightTheMelons::Helpers::FormMultipleSelectHelper

5

time_ext_test.rb (https://github.com/awscloudtest/rails.git) Ruby · 786 lines

2 require 'active_support/time'

3

4 class TimeExtCalculationsTest < Test::Unit::TestCase

5 def test_seconds_since_midnight

6 assert_equal 1,Time.local(2005,1,1,0,0,1).seconds_since_midnight

756 end

757

758 class TimeExtMarshalingTest < Test::Unit::TestCase

759 def test_marshaling_with_utc_instance

760 t = Time.utc(2000)

atom_test.rb (https://github.com/GunioRobot/method_trails.git) Ruby · 431 lines

116 # ====================

117

118 class TestNilAtom < Test::Unit::TestCase

119 def setup

120 @atom = MethodTrails::Atom.new(nil)

123 end

124

125 class TestFalseAtom < Test::Unit::TestCase

126 def setup

127 @atom = MethodTrails::Atom.new(false)

130 end

131

132 class TestTrueAtom < Test::Unit::TestCase

133 def setup

134 @atom = MethodTrails::Atom.new(true)

ExposeTest.rb (https://gitlab.com/jorjpimm/bondage) Ruby · 409 lines

8

9

10 class TestExpose < Test::Unit::TestCase

11 def setup

12 @astTest = Library.new("AstTest", "test/testData/BasicAst")

test-testcase.rb (https://github.com/vartikasingh/BackchannelApplication-1.git) Ruby · 572 lines

123 check("Should have a test suite", suite.instance_of?(TestSuite))

124 check("Should have one test", suite.size == 1)

125 check("Should have the default test", suite.tests.first.name == "default_test(Test::Unit::TestCase)")

126

127 result = TestResult.new

456 end

457

458 test_case = Class.new(Test::Unit::TestCase) do

459 include test_module

460

474

475 def test_defined_order

476 test_case = Class.new(Test::Unit::TestCase) do

477 def test_z

478 end

test-fixture.rb (https://github.com/vartikasingh/BackchannelApplication-1.git) Ruby · 487 lines

1 class TestUnitFixture < Test::Unit::TestCase

2 module EmptyModule

3 end

131

132 def test_cleanup_with_exception

133 test_case = Class.new(Test::Unit::TestCase) do

134 def called_ids

135 @called_ids ||= []

229

230 def test_teardown_with_exception

231 test_case = Class.new(Test::Unit::TestCase) do

232 def called_ids

233 @called_ids ||= []

273

274 def assert_setup_customizable(expected, parent, options)

275 test_case = Class.new(parent || Test::Unit::TestCase) do

276 yield(self, :before) if block_given?

277

kern-2035.rb (https://github.com/sgithens/nakamura.git) Ruby · 279 lines

7 include SlingUsers

8

9 class TC_Kern2035Test < Test::Unit::TestCase

10 include SlingTest

11

test_validations.rb (https://github.com/yale/mongomapper.git) Ruby · 549 lines

1 require 'test_helper'

2

3 class ValidationsTest < Test::Unit::TestCase

4 context "Validations" do

5 context "on a Document" do

test_many_documents_proxy.rb (https://github.com/yale/mongomapper.git) Ruby · 804 lines

2 require 'models'

3

4 class ManyDocumentsProxyTest < Test::Unit::TestCase

5 def setup

6 Project.collection.remove

test_querying.rb (https://github.com/yale/mongomapper.git) Ruby · 884 lines

1 require 'test_helper'

2

3 class QueryingTesting < Test::Unit::TestCase

4 def setup

5 @document = Doc do

test_win32ole_variant.rb (https://github.com/kosaki/ruby.git) Ruby · 656 lines

7 if defined?(WIN32OLE_VARIANT)

8

9 class TestWIN32OLE_VARIANT < Test::Unit::TestCase

10 def setup

11 @orglocale = WIN32OLE.locale

test_syslog_logger.rb (https://github.com/kosaki/ruby.git) Ruby · 572 lines

10 # These tests ensure Syslog::Logger works like Logger

11

12 class TestSyslogRootLogger < Test::Unit::TestCase

13

14 module MockSyslog

test_settracefunc.rb (https://github.com/kosaki/ruby.git) Ruby · 994 lines

2 require_relative 'envutil'

3

4 class TestSetTraceFunc < Test::Unit::TestCase

5 def setup

6 @original_compile_option = RubyVM::InstructionSequence.compile_option

test_date_parse.rb (https://github.com/kosaki/ruby.git) Ruby · 974 lines

2 require 'date'

3

4 class TestDateParse < Test::Unit::TestCase

5

6 def test__parse

test_pack.rb (https://github.com/kosaki/ruby.git) Ruby · 374 lines

4 require "-test-/bignum"

5

6 class TestBignum < Test::Unit::TestCase

7 class TestPack < Test::Unit::TestCase

test_rational2.rb (https://github.com/cparedes/omnibus.git) Ruby · 960 lines

2 require 'rational'

3

4 class Rational_Test2 < Test::Unit::TestCase

5

6 def test_kumi

test_fixnum_gcd.rb (https://github.com/cparedes/omnibus.git) Ruby · 811 lines

5 require 'rbconfig'

6

7 class GcdTest < Test::Unit::TestCase

8

9 @@biggest_positive_fixnum = 1

test_rdoc_markup_parser.rb (https://github.com/cparedes/omnibus.git) Ruby · 1345 lines

5 require 'rdoc/markup/to_test'

6

7 class TestRDocMarkupParser < MiniTest::Unit::TestCase

8

9 def setup

time_ext_test.rb (https://github.com/Epictetus/bookqueue.git) Ruby · 667 lines

1 require 'abstract_unit'

2

3 class TimeExtCalculationsTest < Test::Unit::TestCase

4 def test_seconds_since_midnight

5 assert_equal 1,Time.local(2005,1,1,0,0,1).seconds_since_midnight

633 end

634

635 class TimeExtMarshalingTest < Test::Unit::TestCase

636 def test_marshaling_with_utc_instance

637 t = Time.utc(2000)

date_time_ext_test.rb (https://github.com/Epictetus/bookqueue.git) Ruby · 288 lines

1 require 'abstract_unit'

2

3 class DateTimeExtCalculationsTest < Test::Unit::TestCase

4 def test_to_s

5 datetime = DateTime.new(2005, 2, 21, 14, 30, 0, 0)