Class: Test::Unit::TestCase

Inherits:
Object
  • Object
show all
Defined in:
lib/test2spec_help.rb

Overview

Adds the same helper methods as Rails’ test_help.rb This file must be required from test_helper.rb before running test2spec over Rails tests.

Replace the following line in your test/test_helper.rb

require 'test_help'

with

require 'test2spec_help'

and then translate your tests:

test2spec --specdir spec/models test/unit
test2spec --specdir spec/controllers test/functional

Class Method Summary collapse

Class Method Details

.fixture_class_names=(*args) ⇒ Object



22
23
# File 'lib/test2spec_help.rb', line 22

def self.fixture_class_names=(*args)
end

.fixture_path=(p) ⇒ Object



13
14
# File 'lib/test2spec_help.rb', line 13

def self.fixture_path=(p)
end

.fixture_table_names=(*args) ⇒ Object



19
20
# File 'lib/test2spec_help.rb', line 19

def self.fixture_table_names=(*args)
end

.fixtures(*table_names) ⇒ Object



34
35
# File 'lib/test2spec_help.rb', line 34

def self.fixtures(*table_names)  
end

.pre_loaded_fixtures=(*args) ⇒ Object



31
32
# File 'lib/test2spec_help.rb', line 31

def self.pre_loaded_fixtures=(*args)
end

.use_instantiated_fixtures=(*args) ⇒ Object



28
29
# File 'lib/test2spec_help.rb', line 28

def self.use_instantiated_fixtures=(*args)
end

.use_transactional_fixtures=(*args) ⇒ Object



16
17
# File 'lib/test2spec_help.rb', line 16

def self.use_transactional_fixtures=(f)
end