torquebox / torquespec

Integration testing with TorqueBox
Apache License 2.0
17 stars 10 forks source link

remote_describe bugged #8

Open AndreasWurm opened 11 years ago

AndreasWurm commented 11 years ago

remote_describe without a name passed will result in wrong behaviour.

worker_information_spec.rb

require 'torquespec_helper'

describe WorkerInformation do
  test_descriptor = "
application:
  root: #{Rails.root}
  env: test
web:
  context: /integration_tests"

  deploy(test_descriptor)

  remote_describe do
    it "bar" do
      true.should be_true
    end
  end
end

run_queue_information_spec.rb

require 'torquespec_helper'

describe RunQueueInformation do
  test_descriptor = "
application:
  root: #{Rails.root}
  env: test
web:
  context: /integration_tests"

  deploy(test_descriptor)

  remote_describe do
    it "foo" do
      true.should be_true
    end
  end
end

Output:

RunQueueInformation
deploy /home/kane/projects/lernplattform/.torquespec/RunQueueInformation-knob.yml
deployed in 54s

    foo

WorkerInformation
deploy /home/kane/projects/lernplattform/.torquespec/WorkerInformation-knob.yml
deployed in 15s

    foo