Sha256: 055be34c89d49d360e7d3bae27ec0b6157a1c9dcb4dbb2018052ad8c95479a55

Contents?: true

Size: 524 Bytes

Versions: 15

Compression:

Stored size: 524 Bytes

Contents

Execute.define_task do
  begin
    require 'rspec/core/rake_task'
    desc "spec", "Run source adapter specs"
    def spec
      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

15 entries across 15 versions & 1 rubygems

Version Path
rhoconnect-3.4.5 commands/rhoconnect/spec.rb
rhoconnect-4.0.0.beta.10 commands/rhoconnect_spec/spec.rb
rhoconnect-4.0.0.beta.12 commands/rhoconnect_spec/spec.rb
rhoconnect-3.4.4 commands/rhoconnect/spec.rb
rhoconnect-3.4.3 commands/rhoconnect/spec.rb
rhoconnect-3.4.2 commands/rhoconnect/spec.rb
rhoconnect-3.3.6 commands/commands/rhoconnect/spec.rb
rhoconnect-3.3.5 commands/commands/rhoconnect/spec.rb
rhoconnect-3.3.4 commands/commands/rhoconnect/spec.rb
rhoconnect-3.3.3 commands/commands/rhoconnect/spec.rb
rhoconnect-3.3.2 commands/commands/rhoconnect/spec.rb
rhoconnect-3.3.1 commands/commands/rhoconnect/spec.rb
rhoconnect-3.3.1.beta4 commands/commands/rhoconnect/spec.rb
rhoconnect-3.3.1.beta3 commands/commands/rhoconnect/spec.rb
rhoconnect-3.3.1.beta2 commands/commands/rhoconnect/spec.rb