Sha256: 6545af85e9ed872b0f8700f71647637359519a24ec2488f6b21d85fe2fe95d5f
Contents?: true
Size: 830 Bytes
Versions: 16
Compression:
Stored size: 830 Bytes
Contents
require File.expand_path('../../test_case/rspec', __FILE__) module TestFile module RSpec def setup(project, index) super test_case_generator.mixin TestCase::RSpec self.directory = File.join(project.directory, 'spec') end def content content = super <<-EOT + content require 'spec_helper' require '#{File.join(project.root_dir, 'spec/support/adapter_tests/rspec')}' EOT end def filename_prefix "#{"%02d" % @index}_spec" end # XXX: Do we need this if this is already in RSpecTestCase? def add_working_test_case_with_adapter_tests add_working_test_case do |test_case| test_case.add_to_before_tests <<-EOT include AdapterTests::RSpec EOT yield test_case if block_given? end end end end
Version data entries
16 entries across 16 versions & 1 rubygems