Sha256: bf485fcde3c67f1c87bc386fc220455a672714b1479253f11022ed397e61dffa

Contents?: true

Size: 363 Bytes

Versions: 16

Compression:

Stored size: 363 Bytes

Contents

module TestCase
  module RSpec
    def include_adapter_tests
      add_to_before_tests <<-EOT
        include AdapterTests::RSpec
      EOT
    end

    private

    def start_of_test_case
      "describe 'A test case' do"
    end

    def build_test(index, body)
      ["it 'is test ##{index}' do", body, "end"].map { |line| line + "\n" }.join
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rr-3.1.1 spec/support/test_case/rspec.rb
rr-3.1.0 spec/support/test_case/rspec.rb
rr-3.0.9 spec/support/test_case/rspec.rb
rr-3.0.8 spec/support/test_case/rspec.rb
rr-3.0.7 spec/support/test_case/rspec.rb
rr-3.0.6 spec/support/test_case/rspec.rb
rr-3.0.5 spec/support/test_case/rspec.rb
rr-3.0.4 spec/support/test_case/rspec.rb
rr-3.0.3 spec/support/test_case/rspec.rb
rr-3.0.2 spec/support/test_case/rspec.rb
rr-3.0.1 spec/support/test_case/rspec.rb
rr-3.0.0 spec/support/test_case/rspec.rb
rr-1.2.1 spec/support/test_case/rspec.rb
rr-1.2.0 spec/support/test_case/rspec.rb
rr-1.1.2 spec/support/test_case/rspec.rb
rr-1.1.2.rc1 spec/support/test_case/rspec.rb