Sha256: a4f4cbb661b96e0d145816e870c149fabc651b08140f327696731d1a19d0a86b

Contents?: true

Size: 527 Bytes

Versions: 21

Compression:

Stored size: 527 Bytes

Contents

Execute.define_task do
  begin
    desc "spec", "Run source adapter specs"
    def spec
      require 'rspec/core/rake_task'

      files = File.join('spec','**','*_spec.rb')
      pattern = FileList[files]
      rspec_opts = "-fn -b --color"

      cmd = "bundle exec rspec #{pattern} #{rspec_opts}"
      puts cmd
      exec cmd
      # Another way run rspec examples
      # RSpec::Core::Runner.run(pattern, $stderr, $stdout)
    end
  rescue Exception => e
    puts "Run source adapter specs error: #{e.inspect}"
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
rhoconnect-7.6.0 commands/rhoconnect_spec/spec.rb
rhoconnect-7.5.1 commands/rhoconnect_spec/spec.rb
rhoconnect-7.4.1 commands/rhoconnect_spec/spec.rb
rhoconnect-7.1.17 commands/rhoconnect_spec/spec.rb
rhoconnect-6.2.0 commands/rhoconnect_spec/spec.rb
rhoconnect-6.0.11 commands/rhoconnect_spec/spec.rb
rhoconnect-5.5.18 commands/rhoconnect_spec/spec.rb
rhoconnect-5.5.17 commands/rhoconnect_spec/spec.rb
rhoconnect-5.5.15 commands/rhoconnect_spec/spec.rb
rhoconnect-5.5.0.22 commands/rhoconnect_spec/spec.rb
rhoconnect-5.5.2 commands/rhoconnect_spec/spec.rb
rhoconnect-5.5.0.7 commands/rhoconnect_spec/spec.rb
rhoconnect-5.5.0.3 commands/rhoconnect_spec/spec.rb
rhoconnect-5.5.0 commands/rhoconnect_spec/spec.rb
rhoconnect-5.1.1 commands/rhoconnect_spec/spec.rb
rhoconnect-4.0.4 commands/rhoconnect_spec/spec.rb
rhoconnect-4.0.3 commands/rhoconnect_spec/spec.rb
rhoconnect-4.0.2 commands/rhoconnect_spec/spec.rb
rhoconnect-4.0.1 commands/rhoconnect_spec/spec.rb
rhoconnect-4.0.0 commands/rhoconnect_spec/spec.rb