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
request_forgery_protection_test.rb (https://bitbucket.org/javierbuilder/uncontabilidad.git) Ruby · 327 lines
231 # OK let's get our test on
233 class RequestForgeryProtectionControllerTest < Test::Unit::TestCase
234 include RequestForgeryProtectionTests
235 def setup
246 end
248 class RequestForgeryProtectionWithoutSecretControllerTest < Test::Unit::TestCase
249 def setup
250 @controller = RequestForgeryProtectionWithoutSecretController.new
265 end
267 class CsrfCookieMonsterControllerTest < Test::Unit::TestCase
268 include RequestForgeryProtectionTests
269 def setup
test_x509store.rb (https://github.com/cparedes/omnibus.git) Ruby · 218 lines
TestParse.rb (https://github.com/akiernan/omnibus.git) Ruby · 503 lines
storage_test.rb (https://github.com/kmoormann/railscasts-episodes.git) Ruby · 277 lines
task_instrumentation_test.rb (https://github.com/reillyse/rpm.git) Ruby · 188 lines
crate_test.rb (https://github.com/buffpojken/PMOG-OS.git) Ruby · 444 lines
test_rendering.rb (https://github.com/ganesan/padrino-framework.git) Ruby · 368 lines
test_validations.rb (https://github.com/thedaniel/mongomatic.git) Ruby · 340 lines
div_test.rb (https://github.com/DanielVartanov/firewatir-enhancements.git) Ruby · 276 lines
test_row.rb (https://github.com/filiptepper/example.git) Ruby · 312 lines
routing_test.rb (https://github.com/github/rails.git) Ruby · 400 lines
test_latlng.rb (https://github.com/marionm/geokit-gem.git) Ruby · 215 lines
tc_data_timezone_info.rb (https://bitbucket.org/ohimmelreich/asalia-training.git) Ruby · 282 lines
test_fileutils.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 262 lines
test_migration_generator.rb (https://github.com/ganesan/padrino-framework.git) Ruby · 189 lines
compiled_templates_test.rb (https://github.com/sakarist/ryweb.git) Ruby · 203 lines
task_definition_test.rb (https://github.com/wangmh/webistrano.git) Ruby · 101 lines
file_type.rb (https://github.com/lpeabody/coderay.git) Ruby · 123 lines
test_http11.rb (https://github.com/rkh/puma.git) Ruby · 126 lines
callback_inheritance_test.rb (https://bitbucket.org/javierbuilder/rails.git) Ruby · 150 lines
83 end
85 class BasicCallbacksTest < Test::Unit::TestCase
86 def setup
87 @index = GrandParent.new("index").dispatch
104 end
106 class InheritedCallbacksTest < Test::Unit::TestCase
107 def setup
108 @index = Parent.new("index").dispatch
125 end
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
asset_package_helper_development_test.rb (https://bitbucket.org/tduarte/hite.in.git) Ruby · 100 lines
namespace_dsl_test.rb (https://github.com/et/capistrano.git) Ruby · 311 lines
helper.rb (https://github.com/holoiii/Free-RPG-Engine-FaceBook-Game-App.git) Ruby · 146 lines
notifier_test.rb (https://github.com/indirect/airbrake.git) Ruby · 235 lines
atom_feed_test.rb (https://github.com/bennett/communityengine.git) Ruby · 85 lines
routing_test.rb (https://github.com/josefrichter/docrails.git) Ruby · 261 lines
test_timers.rb (https://github.com/goking/eventmachine.git) Ruby · 160 lines
handset_test.rb (https://github.com/bluecat76/wurfl.git) Ruby · 110 lines
relatable_test.rb (https://github.com/botsie/virtualbox.git) Ruby · 369 lines
notification_test.rb (https://github.com/micahalles/flix_cloud-gem.git) Ruby · 223 lines
context_test.rb (https://github.com/balmas/sosol.git) Ruby · 372 lines
tc_timezone_period.rb (https://bitbucket.org/ohimmelreich/asalia-training.git) Ruby · 509 lines
tc_time_or_datetime.rb (https://bitbucket.org/ohimmelreich/asalia-training.git) Ruby · 422 lines
extend_test.rb (https://bitbucket.org/ohimmelreich/asalia-training.git) Ruby · 1403 lines
conversion_test.rb (https://bitbucket.org/ohimmelreich/asalia-training.git) Ruby · 1743 lines
formatter_test_case.rb (https://bitbucket.org/ohimmelreich/asalia-training.git) Ruby · 698 lines
tc_timezone_melbourne.rb (https://bitbucket.org/ohimmelreich/asalia-training.git) Ruby · 114 lines
test_order.rb (https://gitlab.com/MichelZuniga/ruby) Ruby · 109 lines
callbacks_test.rb (https://github.com/amit-m/rails.git) Ruby · 639 lines
159 end
161 class OneTimeCompileTest < Test::Unit::TestCase
162 def test_optimized_first_compile
163 around = OneTimeCompile.new
178 end
180 class AfterSaveConditionalPersonCallbackTest < Test::Unit::TestCase
181 def test_after_save_runs_in_the_reverse_order
182 person = AfterSaveConditionalPerson.new
346 end
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
test_configure_proxy.rb (https://gitlab.com/vectorci/fluentd) Ruby · 386 lines
id3_test.rb (https://github.com/MarcelorjOliveira/Sistemas-Especialistas.git) Ruby · 208 lines
work_time_schedule_test.rb (https://bitbucket.org/srmoscow/holiday_calendar.git) Ruby · 260 lines
validates_email_format_of.rb (https://github.com/chap/teambox.git) Ruby · 97 lines
test_settracefunc.rb (https://gitlab.com/klauer/ruby) Ruby · 373 lines
test_ruby_parser_extras.rb (https://bitbucket.org/toihrk/fusuma.git) Ruby · 291 lines
test_reader.rb (https://github.com/vzmind/net-http.git) Ruby · 364 lines
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
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
test_date_new.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 271 lines
callbacks_test.rb (https://github.com/boyjunqiang/rails.git) Ruby · 528 lines
140 end
142 class OneTimeCompileTest < Test::Unit::TestCase
143 def test_optimized_first_compile
144 around = OneTimeCompile.new
280 end
282 class AroundCallbacksTest < Test::Unit::TestCase
283 def test_save_around
284 around = AroundPerson.new
299 end
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
test_generic.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 720 lines
test_stringscanner.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 693 lines
test_switch_hitter.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 577 lines
test_basetype.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 970 lines
test_array.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 1166 lines
test_win32ole_variant.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 661 lines
test_emoji.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 442 lines
3 module Emoji
5 class TestRenameSJIS < Test::Unit::TestCase
6 def test_shift_jis
7 assert_raise(ArgumentError) { "".force_encoding("Shift_JIS-DoCoMo") }
11 end
13 class TestUTF8_BLACK_SUN_WITH_RAYS < Test::Unit::TestCase
14 include Emoji
33 end
35 class TestDoCoMo < Test::Unit::TestCase
36 include Emoji
test_rational2.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 959 lines
test_complex2.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 578 lines
test_basicinstructions.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 685 lines
test_assignment.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 695 lines
test_validation_rng.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 790 lines
test_rdoc_parser_ruby.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 2135 lines
test_bigdecimal.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 1306 lines
test_generic.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 704 lines
test_assignment.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 467 lines
test-trees.rb (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Ruby · 843 lines
9 include ANTLR3::AST
11 class TestTreeNodeStream < Test::Unit::TestCase
12 def setup
13 @adaptor = CommonTreeAdaptor.new
311 end
313 class TestCommonTreeNodeStream < Test::Unit::TestCase
314 def setup
315 # before-each-test code
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
test_permissions.rb (https://github.com/feist/pcs.git) Ruby · 498 lines
test_corosyncconf.rb (https://github.com/feist/pcs.git) Ruby · 1302 lines
test_config.rb (https://github.com/feist/pcs.git) Ruby · 919 lines
events_test.rb (https://gitlab.com/Blueprint-Marketing/rdom) Ruby · 500 lines
sensu_test.rb (https://github.com/Epictetus/sensu.git) Ruby · 118 lines
test_project_utils.rb (https://github.com/holroyd/martsearch.git) Ruby · 852 lines
test_nexus.rb (https://github.com/domthu/bioruby.git) Ruby · 366 lines
test_report.rb (https://github.com/domthu/bioruby.git) Ruby · 870 lines
59 class TestSim4Report < Test::Unit::TestCase
61 def setup
129 end #class TestSim4Report
131 class TestSim4ReportHit < Test::Unit::TestCase
133 def setup
261 end #class TestSim4ReportHit
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
21 module Bio
22 class TestTreeEdge < Test::Unit::TestCase
23 def setup
24 @obj = Bio::Tree::Edge.new(123.45)
66 end #class TestTreeEdge
68 class TestTreeNode < Test::Unit::TestCase
69 def setup
70 @obj = Bio::Tree::Node.new
126 end #class TestTreeNode
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
test_rdoc_markup.rb (https://github.com/johnbender/rubinius.git) Ruby · 626 lines
date_time_ext_test.rb (https://github.com/phuibonhoa/rails.git) Ruby · 412 lines
multiple_select_test.rb (https://github.com/wangmh/webistrano.git) Ruby · 686 lines
time_ext_test.rb (https://github.com/awscloudtest/rails.git) Ruby · 786 lines
2 require 'active_support/time'
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
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 # ====================
118 class TestNilAtom < Test::Unit::TestCase
119 def setup
120 @atom = MethodTrails::Atom.new(nil)
123 end
125 class TestFalseAtom < Test::Unit::TestCase
126 def setup
127 @atom = MethodTrails::Atom.new(false)
130 end
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
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)")
127 result = TestResult.new
456 end
458 test_case = Class.new(Test::Unit::TestCase) do
459 include test_module
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
132 def test_cleanup_with_exception
133 test_case = Class.new(Test::Unit::TestCase) do
134 def called_ids
135 @called_ids ||= []
230 def test_teardown_with_exception
231 test_case = Class.new(Test::Unit::TestCase) do
232 def called_ids
233 @called_ids ||= []
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?
kern-2035.rb (https://github.com/sgithens/nakamura.git) Ruby · 279 lines
test_validations.rb (https://github.com/yale/mongomapper.git) Ruby · 549 lines
test_many_documents_proxy.rb (https://github.com/yale/mongomapper.git) Ruby · 804 lines
test_querying.rb (https://github.com/yale/mongomapper.git) Ruby · 884 lines
test_win32ole_variant.rb (https://github.com/kosaki/ruby.git) Ruby · 656 lines
test_syslog_logger.rb (https://github.com/kosaki/ruby.git) Ruby · 572 lines
test_settracefunc.rb (https://github.com/kosaki/ruby.git) Ruby · 994 lines
test_date_parse.rb (https://github.com/kosaki/ruby.git) Ruby · 974 lines
test_pack.rb (https://github.com/kosaki/ruby.git) Ruby · 374 lines
test_rational2.rb (https://github.com/cparedes/omnibus.git) Ruby · 960 lines
test_fixnum_gcd.rb (https://github.com/cparedes/omnibus.git) Ruby · 811 lines
test_rdoc_markup_parser.rb (https://github.com/cparedes/omnibus.git) Ruby · 1345 lines
time_ext_test.rb (https://github.com/Epictetus/bookqueue.git) Ruby · 667 lines
1 require 'abstract_unit'
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
635 class TimeExtMarshalingTest < Test::Unit::TestCase
636 def test_marshaling_with_utc_instance
637 t = Time.utc(2000)